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

import '../error/error_model.dart';

part 'liked_tenders_response.freezed.dart';
part 'liked_tenders_response.g.dart';

@freezed
abstract class LikedTendersResponse with _$LikedTendersResponse {
  const factory LikedTendersResponse({
    required bool? success,
    required String? message,
    required LikedTendersData? data,
    required ErrorModel? error,
  }) = _LikedTendersResponse;

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