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

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

part 'tender_approvals_response.freezed.dart';
part 'tender_approvals_response.g.dart';

@freezed
abstract class TenderApprovalsResponse with _$TenderApprovalsResponse {
  const factory TenderApprovalsResponse({
    required bool? success,
    required ErrorModel? error,
    required TenderApprovalsDataWrapper? data,
  }) = _TenderApprovalsResponse;

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