// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:tm_app/data/services/model/meta/meta.dart';

import '../../error/error_model.dart';
import '../tenders_data/tenders_data.dart';

part 'tenders_response.freezed.dart';
part 'tenders_response.g.dart';

@freezed
abstract class TendersResponse with _$TendersResponse {
  const factory TendersResponse({
    required TendersData? data,
    required ErrorModel? error,
    required String? message,
    required bool? success,
    required Meta? meta,
  }) = _TendersResponse;

  factory TendersResponse.fromJson(Map<String, Object?> json) =>
      _$TendersResponseFromJson(json);
}
