// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:tm_app/data/services/model/error/error_model.dart';
import 'package:tm_app/data/services/model/tender_approvals_stats_data/tender_approvals_stats_data.dart';

part 'tender_approvals_stats_response.freezed.dart';
part 'tender_approvals_stats_response.g.dart';

@freezed
abstract class TenderApprovalsStatsResponse
    with _$TenderApprovalsStatsResponse {
  @JsonSerializable(explicitToJson: true)
  const factory TenderApprovalsStatsResponse({
    @JsonKey(name: 'success') required bool? success,
    @JsonKey(name: 'message') required String? message,
    @JsonKey(name: 'error') ErrorModel? error,
    @JsonKey(name: 'data') TenderApprovalsStatsData? data,
  }) = _TenderApprovalsStatsResponse;

  factory TenderApprovalsStatsResponse.fromJson(Map<String, dynamic> json) =>
      _$TenderApprovalsStatsResponseFromJson(json);
}
