// 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_model.freezed.dart';
part 'tender_model.g.dart';

@freezed
abstract class TenderModel with _$TenderModel {
  const factory TenderModel({

    required bool? success,
    required String? message,
    required TenderData? data,
    required ErrorModel? error,
    @JsonKey(name: 'profile_match') required double? profileMatch,
  }) = _TenderModel;

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