// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'tender_approvals_stats_data.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

// dart format off
T _$identity<T>(T value) => value;

/// @nodoc
mixin _$TenderApprovalsStatsData {

@JsonKey(name: 'company_id') String? get companyId;@JsonKey(name: 'total_approvals') int? get totalApprovals;@JsonKey(name: 'submitted_tenders') int? get submittedTenders;@JsonKey(name: 'rejected_tenders') int? get rejectedTenders;@JsonKey(name: 'self_apply_count') int? get selfApplyCount;@JsonKey(name: 'partnership_count') int? get partnershipCount;@JsonKey(name: 'approvals_by_status') ApprovalsByStatus? get approvalsByStatus;@JsonKey(name: 'approvals_by_submission') ApprovalsBySubmission? get approvalsBySubmission;@JsonKey(name: 'last_updated') int? get lastUpdated;
/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$TenderApprovalsStatsDataCopyWith<TenderApprovalsStatsData> get copyWith => _$TenderApprovalsStatsDataCopyWithImpl<TenderApprovalsStatsData>(this as TenderApprovalsStatsData, _$identity);

  /// Serializes this TenderApprovalsStatsData to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is TenderApprovalsStatsData&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.totalApprovals, totalApprovals) || other.totalApprovals == totalApprovals)&&(identical(other.submittedTenders, submittedTenders) || other.submittedTenders == submittedTenders)&&(identical(other.rejectedTenders, rejectedTenders) || other.rejectedTenders == rejectedTenders)&&(identical(other.selfApplyCount, selfApplyCount) || other.selfApplyCount == selfApplyCount)&&(identical(other.partnershipCount, partnershipCount) || other.partnershipCount == partnershipCount)&&(identical(other.approvalsByStatus, approvalsByStatus) || other.approvalsByStatus == approvalsByStatus)&&(identical(other.approvalsBySubmission, approvalsBySubmission) || other.approvalsBySubmission == approvalsBySubmission)&&(identical(other.lastUpdated, lastUpdated) || other.lastUpdated == lastUpdated));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,companyId,totalApprovals,submittedTenders,rejectedTenders,selfApplyCount,partnershipCount,approvalsByStatus,approvalsBySubmission,lastUpdated);

@override
String toString() {
  return 'TenderApprovalsStatsData(companyId: $companyId, totalApprovals: $totalApprovals, submittedTenders: $submittedTenders, rejectedTenders: $rejectedTenders, selfApplyCount: $selfApplyCount, partnershipCount: $partnershipCount, approvalsByStatus: $approvalsByStatus, approvalsBySubmission: $approvalsBySubmission, lastUpdated: $lastUpdated)';
}


}

/// @nodoc
abstract mixin class $TenderApprovalsStatsDataCopyWith<$Res>  {
  factory $TenderApprovalsStatsDataCopyWith(TenderApprovalsStatsData value, $Res Function(TenderApprovalsStatsData) _then) = _$TenderApprovalsStatsDataCopyWithImpl;
@useResult
$Res call({
@JsonKey(name: 'company_id') String? companyId,@JsonKey(name: 'total_approvals') int? totalApprovals,@JsonKey(name: 'submitted_tenders') int? submittedTenders,@JsonKey(name: 'rejected_tenders') int? rejectedTenders,@JsonKey(name: 'self_apply_count') int? selfApplyCount,@JsonKey(name: 'partnership_count') int? partnershipCount,@JsonKey(name: 'approvals_by_status') ApprovalsByStatus? approvalsByStatus,@JsonKey(name: 'approvals_by_submission') ApprovalsBySubmission? approvalsBySubmission,@JsonKey(name: 'last_updated') int? lastUpdated
});


$ApprovalsByStatusCopyWith<$Res>? get approvalsByStatus;$ApprovalsBySubmissionCopyWith<$Res>? get approvalsBySubmission;

}
/// @nodoc
class _$TenderApprovalsStatsDataCopyWithImpl<$Res>
    implements $TenderApprovalsStatsDataCopyWith<$Res> {
  _$TenderApprovalsStatsDataCopyWithImpl(this._self, this._then);

  final TenderApprovalsStatsData _self;
  final $Res Function(TenderApprovalsStatsData) _then;

/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? companyId = freezed,Object? totalApprovals = freezed,Object? submittedTenders = freezed,Object? rejectedTenders = freezed,Object? selfApplyCount = freezed,Object? partnershipCount = freezed,Object? approvalsByStatus = freezed,Object? approvalsBySubmission = freezed,Object? lastUpdated = freezed,}) {
  return _then(_self.copyWith(
companyId: freezed == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as String?,totalApprovals: freezed == totalApprovals ? _self.totalApprovals : totalApprovals // ignore: cast_nullable_to_non_nullable
as int?,submittedTenders: freezed == submittedTenders ? _self.submittedTenders : submittedTenders // ignore: cast_nullable_to_non_nullable
as int?,rejectedTenders: freezed == rejectedTenders ? _self.rejectedTenders : rejectedTenders // ignore: cast_nullable_to_non_nullable
as int?,selfApplyCount: freezed == selfApplyCount ? _self.selfApplyCount : selfApplyCount // ignore: cast_nullable_to_non_nullable
as int?,partnershipCount: freezed == partnershipCount ? _self.partnershipCount : partnershipCount // ignore: cast_nullable_to_non_nullable
as int?,approvalsByStatus: freezed == approvalsByStatus ? _self.approvalsByStatus : approvalsByStatus // ignore: cast_nullable_to_non_nullable
as ApprovalsByStatus?,approvalsBySubmission: freezed == approvalsBySubmission ? _self.approvalsBySubmission : approvalsBySubmission // ignore: cast_nullable_to_non_nullable
as ApprovalsBySubmission?,lastUpdated: freezed == lastUpdated ? _self.lastUpdated : lastUpdated // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}
/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ApprovalsByStatusCopyWith<$Res>? get approvalsByStatus {
    if (_self.approvalsByStatus == null) {
    return null;
  }

  return $ApprovalsByStatusCopyWith<$Res>(_self.approvalsByStatus!, (value) {
    return _then(_self.copyWith(approvalsByStatus: value));
  });
}/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ApprovalsBySubmissionCopyWith<$Res>? get approvalsBySubmission {
    if (_self.approvalsBySubmission == null) {
    return null;
  }

  return $ApprovalsBySubmissionCopyWith<$Res>(_self.approvalsBySubmission!, (value) {
    return _then(_self.copyWith(approvalsBySubmission: value));
  });
}
}


/// Adds pattern-matching-related methods to [TenderApprovalsStatsData].
extension TenderApprovalsStatsDataPatterns on TenderApprovalsStatsData {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _TenderApprovalsStatsData value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _TenderApprovalsStatsData() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _TenderApprovalsStatsData value)  $default,){
final _that = this;
switch (_that) {
case _TenderApprovalsStatsData():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _TenderApprovalsStatsData value)?  $default,){
final _that = this;
switch (_that) {
case _TenderApprovalsStatsData() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function(@JsonKey(name: 'company_id')  String? companyId, @JsonKey(name: 'total_approvals')  int? totalApprovals, @JsonKey(name: 'submitted_tenders')  int? submittedTenders, @JsonKey(name: 'rejected_tenders')  int? rejectedTenders, @JsonKey(name: 'self_apply_count')  int? selfApplyCount, @JsonKey(name: 'partnership_count')  int? partnershipCount, @JsonKey(name: 'approvals_by_status')  ApprovalsByStatus? approvalsByStatus, @JsonKey(name: 'approvals_by_submission')  ApprovalsBySubmission? approvalsBySubmission, @JsonKey(name: 'last_updated')  int? lastUpdated)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _TenderApprovalsStatsData() when $default != null:
return $default(_that.companyId,_that.totalApprovals,_that.submittedTenders,_that.rejectedTenders,_that.selfApplyCount,_that.partnershipCount,_that.approvalsByStatus,_that.approvalsBySubmission,_that.lastUpdated);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function(@JsonKey(name: 'company_id')  String? companyId, @JsonKey(name: 'total_approvals')  int? totalApprovals, @JsonKey(name: 'submitted_tenders')  int? submittedTenders, @JsonKey(name: 'rejected_tenders')  int? rejectedTenders, @JsonKey(name: 'self_apply_count')  int? selfApplyCount, @JsonKey(name: 'partnership_count')  int? partnershipCount, @JsonKey(name: 'approvals_by_status')  ApprovalsByStatus? approvalsByStatus, @JsonKey(name: 'approvals_by_submission')  ApprovalsBySubmission? approvalsBySubmission, @JsonKey(name: 'last_updated')  int? lastUpdated)  $default,) {final _that = this;
switch (_that) {
case _TenderApprovalsStatsData():
return $default(_that.companyId,_that.totalApprovals,_that.submittedTenders,_that.rejectedTenders,_that.selfApplyCount,_that.partnershipCount,_that.approvalsByStatus,_that.approvalsBySubmission,_that.lastUpdated);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function(@JsonKey(name: 'company_id')  String? companyId, @JsonKey(name: 'total_approvals')  int? totalApprovals, @JsonKey(name: 'submitted_tenders')  int? submittedTenders, @JsonKey(name: 'rejected_tenders')  int? rejectedTenders, @JsonKey(name: 'self_apply_count')  int? selfApplyCount, @JsonKey(name: 'partnership_count')  int? partnershipCount, @JsonKey(name: 'approvals_by_status')  ApprovalsByStatus? approvalsByStatus, @JsonKey(name: 'approvals_by_submission')  ApprovalsBySubmission? approvalsBySubmission, @JsonKey(name: 'last_updated')  int? lastUpdated)?  $default,) {final _that = this;
switch (_that) {
case _TenderApprovalsStatsData() when $default != null:
return $default(_that.companyId,_that.totalApprovals,_that.submittedTenders,_that.rejectedTenders,_that.selfApplyCount,_that.partnershipCount,_that.approvalsByStatus,_that.approvalsBySubmission,_that.lastUpdated);case _:
  return null;

}
}

}

/// @nodoc

@JsonSerializable(explicitToJson: true)
class _TenderApprovalsStatsData implements TenderApprovalsStatsData {
  const _TenderApprovalsStatsData({@JsonKey(name: 'company_id') required this.companyId, @JsonKey(name: 'total_approvals') required this.totalApprovals, @JsonKey(name: 'submitted_tenders') required this.submittedTenders, @JsonKey(name: 'rejected_tenders') required this.rejectedTenders, @JsonKey(name: 'self_apply_count') required this.selfApplyCount, @JsonKey(name: 'partnership_count') required this.partnershipCount, @JsonKey(name: 'approvals_by_status') required this.approvalsByStatus, @JsonKey(name: 'approvals_by_submission') required this.approvalsBySubmission, @JsonKey(name: 'last_updated') required this.lastUpdated});
  factory _TenderApprovalsStatsData.fromJson(Map<String, dynamic> json) => _$TenderApprovalsStatsDataFromJson(json);

@override@JsonKey(name: 'company_id') final  String? companyId;
@override@JsonKey(name: 'total_approvals') final  int? totalApprovals;
@override@JsonKey(name: 'submitted_tenders') final  int? submittedTenders;
@override@JsonKey(name: 'rejected_tenders') final  int? rejectedTenders;
@override@JsonKey(name: 'self_apply_count') final  int? selfApplyCount;
@override@JsonKey(name: 'partnership_count') final  int? partnershipCount;
@override@JsonKey(name: 'approvals_by_status') final  ApprovalsByStatus? approvalsByStatus;
@override@JsonKey(name: 'approvals_by_submission') final  ApprovalsBySubmission? approvalsBySubmission;
@override@JsonKey(name: 'last_updated') final  int? lastUpdated;

/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$TenderApprovalsStatsDataCopyWith<_TenderApprovalsStatsData> get copyWith => __$TenderApprovalsStatsDataCopyWithImpl<_TenderApprovalsStatsData>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$TenderApprovalsStatsDataToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _TenderApprovalsStatsData&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.totalApprovals, totalApprovals) || other.totalApprovals == totalApprovals)&&(identical(other.submittedTenders, submittedTenders) || other.submittedTenders == submittedTenders)&&(identical(other.rejectedTenders, rejectedTenders) || other.rejectedTenders == rejectedTenders)&&(identical(other.selfApplyCount, selfApplyCount) || other.selfApplyCount == selfApplyCount)&&(identical(other.partnershipCount, partnershipCount) || other.partnershipCount == partnershipCount)&&(identical(other.approvalsByStatus, approvalsByStatus) || other.approvalsByStatus == approvalsByStatus)&&(identical(other.approvalsBySubmission, approvalsBySubmission) || other.approvalsBySubmission == approvalsBySubmission)&&(identical(other.lastUpdated, lastUpdated) || other.lastUpdated == lastUpdated));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,companyId,totalApprovals,submittedTenders,rejectedTenders,selfApplyCount,partnershipCount,approvalsByStatus,approvalsBySubmission,lastUpdated);

@override
String toString() {
  return 'TenderApprovalsStatsData(companyId: $companyId, totalApprovals: $totalApprovals, submittedTenders: $submittedTenders, rejectedTenders: $rejectedTenders, selfApplyCount: $selfApplyCount, partnershipCount: $partnershipCount, approvalsByStatus: $approvalsByStatus, approvalsBySubmission: $approvalsBySubmission, lastUpdated: $lastUpdated)';
}


}

/// @nodoc
abstract mixin class _$TenderApprovalsStatsDataCopyWith<$Res> implements $TenderApprovalsStatsDataCopyWith<$Res> {
  factory _$TenderApprovalsStatsDataCopyWith(_TenderApprovalsStatsData value, $Res Function(_TenderApprovalsStatsData) _then) = __$TenderApprovalsStatsDataCopyWithImpl;
@override @useResult
$Res call({
@JsonKey(name: 'company_id') String? companyId,@JsonKey(name: 'total_approvals') int? totalApprovals,@JsonKey(name: 'submitted_tenders') int? submittedTenders,@JsonKey(name: 'rejected_tenders') int? rejectedTenders,@JsonKey(name: 'self_apply_count') int? selfApplyCount,@JsonKey(name: 'partnership_count') int? partnershipCount,@JsonKey(name: 'approvals_by_status') ApprovalsByStatus? approvalsByStatus,@JsonKey(name: 'approvals_by_submission') ApprovalsBySubmission? approvalsBySubmission,@JsonKey(name: 'last_updated') int? lastUpdated
});


@override $ApprovalsByStatusCopyWith<$Res>? get approvalsByStatus;@override $ApprovalsBySubmissionCopyWith<$Res>? get approvalsBySubmission;

}
/// @nodoc
class __$TenderApprovalsStatsDataCopyWithImpl<$Res>
    implements _$TenderApprovalsStatsDataCopyWith<$Res> {
  __$TenderApprovalsStatsDataCopyWithImpl(this._self, this._then);

  final _TenderApprovalsStatsData _self;
  final $Res Function(_TenderApprovalsStatsData) _then;

/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? companyId = freezed,Object? totalApprovals = freezed,Object? submittedTenders = freezed,Object? rejectedTenders = freezed,Object? selfApplyCount = freezed,Object? partnershipCount = freezed,Object? approvalsByStatus = freezed,Object? approvalsBySubmission = freezed,Object? lastUpdated = freezed,}) {
  return _then(_TenderApprovalsStatsData(
companyId: freezed == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as String?,totalApprovals: freezed == totalApprovals ? _self.totalApprovals : totalApprovals // ignore: cast_nullable_to_non_nullable
as int?,submittedTenders: freezed == submittedTenders ? _self.submittedTenders : submittedTenders // ignore: cast_nullable_to_non_nullable
as int?,rejectedTenders: freezed == rejectedTenders ? _self.rejectedTenders : rejectedTenders // ignore: cast_nullable_to_non_nullable
as int?,selfApplyCount: freezed == selfApplyCount ? _self.selfApplyCount : selfApplyCount // ignore: cast_nullable_to_non_nullable
as int?,partnershipCount: freezed == partnershipCount ? _self.partnershipCount : partnershipCount // ignore: cast_nullable_to_non_nullable
as int?,approvalsByStatus: freezed == approvalsByStatus ? _self.approvalsByStatus : approvalsByStatus // ignore: cast_nullable_to_non_nullable
as ApprovalsByStatus?,approvalsBySubmission: freezed == approvalsBySubmission ? _self.approvalsBySubmission : approvalsBySubmission // ignore: cast_nullable_to_non_nullable
as ApprovalsBySubmission?,lastUpdated: freezed == lastUpdated ? _self.lastUpdated : lastUpdated // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}

/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ApprovalsByStatusCopyWith<$Res>? get approvalsByStatus {
    if (_self.approvalsByStatus == null) {
    return null;
  }

  return $ApprovalsByStatusCopyWith<$Res>(_self.approvalsByStatus!, (value) {
    return _then(_self.copyWith(approvalsByStatus: value));
  });
}/// Create a copy of TenderApprovalsStatsData
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ApprovalsBySubmissionCopyWith<$Res>? get approvalsBySubmission {
    if (_self.approvalsBySubmission == null) {
    return null;
  }

  return $ApprovalsBySubmissionCopyWith<$Res>(_self.approvalsBySubmission!, (value) {
    return _then(_self.copyWith(approvalsBySubmission: value));
  });
}
}


/// @nodoc
mixin _$ApprovalsByStatus {

@JsonKey(name: 'submitted') int? get submitted;@JsonKey(name: 'rejected') int? get rejected;
/// Create a copy of ApprovalsByStatus
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ApprovalsByStatusCopyWith<ApprovalsByStatus> get copyWith => _$ApprovalsByStatusCopyWithImpl<ApprovalsByStatus>(this as ApprovalsByStatus, _$identity);

  /// Serializes this ApprovalsByStatus to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApprovalsByStatus&&(identical(other.submitted, submitted) || other.submitted == submitted)&&(identical(other.rejected, rejected) || other.rejected == rejected));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,submitted,rejected);

@override
String toString() {
  return 'ApprovalsByStatus(submitted: $submitted, rejected: $rejected)';
}


}

/// @nodoc
abstract mixin class $ApprovalsByStatusCopyWith<$Res>  {
  factory $ApprovalsByStatusCopyWith(ApprovalsByStatus value, $Res Function(ApprovalsByStatus) _then) = _$ApprovalsByStatusCopyWithImpl;
@useResult
$Res call({
@JsonKey(name: 'submitted') int? submitted,@JsonKey(name: 'rejected') int? rejected
});




}
/// @nodoc
class _$ApprovalsByStatusCopyWithImpl<$Res>
    implements $ApprovalsByStatusCopyWith<$Res> {
  _$ApprovalsByStatusCopyWithImpl(this._self, this._then);

  final ApprovalsByStatus _self;
  final $Res Function(ApprovalsByStatus) _then;

/// Create a copy of ApprovalsByStatus
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? submitted = freezed,Object? rejected = freezed,}) {
  return _then(_self.copyWith(
submitted: freezed == submitted ? _self.submitted : submitted // ignore: cast_nullable_to_non_nullable
as int?,rejected: freezed == rejected ? _self.rejected : rejected // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}

}


/// Adds pattern-matching-related methods to [ApprovalsByStatus].
extension ApprovalsByStatusPatterns on ApprovalsByStatus {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ApprovalsByStatus value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ApprovalsByStatus() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ApprovalsByStatus value)  $default,){
final _that = this;
switch (_that) {
case _ApprovalsByStatus():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ApprovalsByStatus value)?  $default,){
final _that = this;
switch (_that) {
case _ApprovalsByStatus() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function(@JsonKey(name: 'submitted')  int? submitted, @JsonKey(name: 'rejected')  int? rejected)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ApprovalsByStatus() when $default != null:
return $default(_that.submitted,_that.rejected);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function(@JsonKey(name: 'submitted')  int? submitted, @JsonKey(name: 'rejected')  int? rejected)  $default,) {final _that = this;
switch (_that) {
case _ApprovalsByStatus():
return $default(_that.submitted,_that.rejected);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function(@JsonKey(name: 'submitted')  int? submitted, @JsonKey(name: 'rejected')  int? rejected)?  $default,) {final _that = this;
switch (_that) {
case _ApprovalsByStatus() when $default != null:
return $default(_that.submitted,_that.rejected);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ApprovalsByStatus implements ApprovalsByStatus {
  const _ApprovalsByStatus({@JsonKey(name: 'submitted') required this.submitted, @JsonKey(name: 'rejected') required this.rejected});
  factory _ApprovalsByStatus.fromJson(Map<String, dynamic> json) => _$ApprovalsByStatusFromJson(json);

@override@JsonKey(name: 'submitted') final  int? submitted;
@override@JsonKey(name: 'rejected') final  int? rejected;

/// Create a copy of ApprovalsByStatus
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ApprovalsByStatusCopyWith<_ApprovalsByStatus> get copyWith => __$ApprovalsByStatusCopyWithImpl<_ApprovalsByStatus>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ApprovalsByStatusToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ApprovalsByStatus&&(identical(other.submitted, submitted) || other.submitted == submitted)&&(identical(other.rejected, rejected) || other.rejected == rejected));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,submitted,rejected);

@override
String toString() {
  return 'ApprovalsByStatus(submitted: $submitted, rejected: $rejected)';
}


}

/// @nodoc
abstract mixin class _$ApprovalsByStatusCopyWith<$Res> implements $ApprovalsByStatusCopyWith<$Res> {
  factory _$ApprovalsByStatusCopyWith(_ApprovalsByStatus value, $Res Function(_ApprovalsByStatus) _then) = __$ApprovalsByStatusCopyWithImpl;
@override @useResult
$Res call({
@JsonKey(name: 'submitted') int? submitted,@JsonKey(name: 'rejected') int? rejected
});




}
/// @nodoc
class __$ApprovalsByStatusCopyWithImpl<$Res>
    implements _$ApprovalsByStatusCopyWith<$Res> {
  __$ApprovalsByStatusCopyWithImpl(this._self, this._then);

  final _ApprovalsByStatus _self;
  final $Res Function(_ApprovalsByStatus) _then;

/// Create a copy of ApprovalsByStatus
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? submitted = freezed,Object? rejected = freezed,}) {
  return _then(_ApprovalsByStatus(
submitted: freezed == submitted ? _self.submitted : submitted // ignore: cast_nullable_to_non_nullable
as int?,rejected: freezed == rejected ? _self.rejected : rejected // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}


}


/// @nodoc
mixin _$ApprovalsBySubmission {

@JsonKey(name: 'partnership') int? get partnership;@JsonKey(name: 'self-apply') int? get selfApply;
/// Create a copy of ApprovalsBySubmission
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ApprovalsBySubmissionCopyWith<ApprovalsBySubmission> get copyWith => _$ApprovalsBySubmissionCopyWithImpl<ApprovalsBySubmission>(this as ApprovalsBySubmission, _$identity);

  /// Serializes this ApprovalsBySubmission to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApprovalsBySubmission&&(identical(other.partnership, partnership) || other.partnership == partnership)&&(identical(other.selfApply, selfApply) || other.selfApply == selfApply));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,partnership,selfApply);

@override
String toString() {
  return 'ApprovalsBySubmission(partnership: $partnership, selfApply: $selfApply)';
}


}

/// @nodoc
abstract mixin class $ApprovalsBySubmissionCopyWith<$Res>  {
  factory $ApprovalsBySubmissionCopyWith(ApprovalsBySubmission value, $Res Function(ApprovalsBySubmission) _then) = _$ApprovalsBySubmissionCopyWithImpl;
@useResult
$Res call({
@JsonKey(name: 'partnership') int? partnership,@JsonKey(name: 'self-apply') int? selfApply
});




}
/// @nodoc
class _$ApprovalsBySubmissionCopyWithImpl<$Res>
    implements $ApprovalsBySubmissionCopyWith<$Res> {
  _$ApprovalsBySubmissionCopyWithImpl(this._self, this._then);

  final ApprovalsBySubmission _self;
  final $Res Function(ApprovalsBySubmission) _then;

/// Create a copy of ApprovalsBySubmission
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? partnership = freezed,Object? selfApply = freezed,}) {
  return _then(_self.copyWith(
partnership: freezed == partnership ? _self.partnership : partnership // ignore: cast_nullable_to_non_nullable
as int?,selfApply: freezed == selfApply ? _self.selfApply : selfApply // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}

}


/// Adds pattern-matching-related methods to [ApprovalsBySubmission].
extension ApprovalsBySubmissionPatterns on ApprovalsBySubmission {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ApprovalsBySubmission value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ApprovalsBySubmission() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ApprovalsBySubmission value)  $default,){
final _that = this;
switch (_that) {
case _ApprovalsBySubmission():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ApprovalsBySubmission value)?  $default,){
final _that = this;
switch (_that) {
case _ApprovalsBySubmission() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function(@JsonKey(name: 'partnership')  int? partnership, @JsonKey(name: 'self-apply')  int? selfApply)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ApprovalsBySubmission() when $default != null:
return $default(_that.partnership,_that.selfApply);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function(@JsonKey(name: 'partnership')  int? partnership, @JsonKey(name: 'self-apply')  int? selfApply)  $default,) {final _that = this;
switch (_that) {
case _ApprovalsBySubmission():
return $default(_that.partnership,_that.selfApply);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function(@JsonKey(name: 'partnership')  int? partnership, @JsonKey(name: 'self-apply')  int? selfApply)?  $default,) {final _that = this;
switch (_that) {
case _ApprovalsBySubmission() when $default != null:
return $default(_that.partnership,_that.selfApply);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ApprovalsBySubmission implements ApprovalsBySubmission {
  const _ApprovalsBySubmission({@JsonKey(name: 'partnership') required this.partnership, @JsonKey(name: 'self-apply') required this.selfApply});
  factory _ApprovalsBySubmission.fromJson(Map<String, dynamic> json) => _$ApprovalsBySubmissionFromJson(json);

@override@JsonKey(name: 'partnership') final  int? partnership;
@override@JsonKey(name: 'self-apply') final  int? selfApply;

/// Create a copy of ApprovalsBySubmission
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ApprovalsBySubmissionCopyWith<_ApprovalsBySubmission> get copyWith => __$ApprovalsBySubmissionCopyWithImpl<_ApprovalsBySubmission>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ApprovalsBySubmissionToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ApprovalsBySubmission&&(identical(other.partnership, partnership) || other.partnership == partnership)&&(identical(other.selfApply, selfApply) || other.selfApply == selfApply));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,partnership,selfApply);

@override
String toString() {
  return 'ApprovalsBySubmission(partnership: $partnership, selfApply: $selfApply)';
}


}

/// @nodoc
abstract mixin class _$ApprovalsBySubmissionCopyWith<$Res> implements $ApprovalsBySubmissionCopyWith<$Res> {
  factory _$ApprovalsBySubmissionCopyWith(_ApprovalsBySubmission value, $Res Function(_ApprovalsBySubmission) _then) = __$ApprovalsBySubmissionCopyWithImpl;
@override @useResult
$Res call({
@JsonKey(name: 'partnership') int? partnership,@JsonKey(name: 'self-apply') int? selfApply
});




}
/// @nodoc
class __$ApprovalsBySubmissionCopyWithImpl<$Res>
    implements _$ApprovalsBySubmissionCopyWith<$Res> {
  __$ApprovalsBySubmissionCopyWithImpl(this._self, this._then);

  final _ApprovalsBySubmission _self;
  final $Res Function(_ApprovalsBySubmission) _then;

/// Create a copy of ApprovalsBySubmission
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? partnership = freezed,Object? selfApply = freezed,}) {
  return _then(_ApprovalsBySubmission(
partnership: freezed == partnership ? _self.partnership : partnership // ignore: cast_nullable_to_non_nullable
as int?,selfApply: freezed == selfApply ? _self.selfApply : selfApply // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}


}

// dart format on
