// 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_data/tender_data.dart';

part 'tender_detail_response_model.freezed.dart';
part 'tender_detail_response_model.g.dart';

@freezed
abstract class TenderDetailResponseModel with _$TenderDetailResponseModel {
  @JsonSerializable(explicitToJson: true)
  const factory TenderDetailResponseModel({
    required TenderData? data,
    required ErrorModel? error,
    required bool? success,
    required String? message,
  }) = _TenderDetailResponseModel;

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