import 'package:freezed_annotation/freezed_annotation.dart';
import '../meta/meta.dart';
import '../tender_approvals_data/tender_approvals_data.dart';

part 'tender_approvals_data_wrapper.freezed.dart';
part 'tender_approvals_data_wrapper.g.dart';

@freezed
abstract class TenderApprovalsDataWrapper with _$TenderApprovalsDataWrapper {
  const factory TenderApprovalsDataWrapper({
    required List<TenderApprovalsData>? tenders,
    required Meta? metadata,
  }) = _TenderApprovalsDataWrapper;

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