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

part 'recommended_tenders_response.freezed.dart';
part 'recommended_tenders_response.g.dart';

@freezed
abstract class RecommendedTendersResponse with _$RecommendedTendersResponse {
  @JsonSerializable(explicitToJson: true)
  const factory 
RecommendedTendersResponse({
  required bool? succes,
  required String? message,
  required ErrorModel? error,
  required RecommendedTendersData? data,
  
  }) = _RecommendedTendersResponse;

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