// ignore_for_file: invalid_annotation_target

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

part 'home_response_model.freezed.dart';
part 'home_response_model.g.dart';

@freezed
abstract class HomeResponseModel with _$HomeResponseModel {
  const factory HomeResponseModel({
    required String? partnership,
    required String? selfApply,
    required String? contracting,
    @JsonKey(name: 'tender_submitted') required String? tenderSubmitted,
    @JsonKey(name: 'approved_tenders') required String? approvedTenders,
    @JsonKey(name: 'tender_value') required String? tenderValue,
    @JsonKey(name: 'thunder_status') required String? thunderStatus,
    @JsonKey(name: 'your_tenders') required List<TenderModel>? yourTenders,
  }) = _HomeResponseModel;

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