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

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

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

/// @nodoc
mixin _$LikedTendersData {

 List<LikedTenderFeedback>? get feedback; Meta? get meta;
/// Create a copy of LikedTendersData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$LikedTendersDataCopyWith<LikedTendersData> get copyWith => _$LikedTendersDataCopyWithImpl<LikedTendersData>(this as LikedTendersData, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is LikedTendersData&&const DeepCollectionEquality().equals(other.feedback, feedback)&&(identical(other.meta, meta) || other.meta == meta));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(feedback),meta);

@override
String toString() {
  return 'LikedTendersData(feedback: $feedback, meta: $meta)';
}


}

/// @nodoc
abstract mixin class $LikedTendersDataCopyWith<$Res>  {
  factory $LikedTendersDataCopyWith(LikedTendersData value, $Res Function(LikedTendersData) _then) = _$LikedTendersDataCopyWithImpl;
@useResult
$Res call({
 List<LikedTenderFeedback>? feedback, Meta? meta
});


$MetaCopyWith<$Res>? get meta;

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

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

/// Create a copy of LikedTendersData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? feedback = freezed,Object? meta = freezed,}) {
  return _then(_self.copyWith(
feedback: freezed == feedback ? _self.feedback : feedback // ignore: cast_nullable_to_non_nullable
as List<LikedTenderFeedback>?,meta: freezed == meta ? _self.meta : meta // ignore: cast_nullable_to_non_nullable
as Meta?,
  ));
}
/// Create a copy of LikedTendersData
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$MetaCopyWith<$Res>? get meta {
    if (_self.meta == null) {
    return null;
  }

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


/// Adds pattern-matching-related methods to [LikedTendersData].
extension LikedTendersDataPatterns on LikedTendersData {
/// 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( _LikedTendersData value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LikedTendersData() 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( _LikedTendersData value)  $default,){
final _that = this;
switch (_that) {
case _LikedTendersData():
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( _LikedTendersData value)?  $default,){
final _that = this;
switch (_that) {
case _LikedTendersData() 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( List<LikedTenderFeedback>? feedback,  Meta? meta)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LikedTendersData() when $default != null:
return $default(_that.feedback,_that.meta);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( List<LikedTenderFeedback>? feedback,  Meta? meta)  $default,) {final _that = this;
switch (_that) {
case _LikedTendersData():
return $default(_that.feedback,_that.meta);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( List<LikedTenderFeedback>? feedback,  Meta? meta)?  $default,) {final _that = this;
switch (_that) {
case _LikedTendersData() when $default != null:
return $default(_that.feedback,_that.meta);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _LikedTendersData implements LikedTendersData {
  const _LikedTendersData({required final  List<LikedTenderFeedback>? feedback, required this.meta}): _feedback = feedback;
  factory _LikedTendersData.fromJson(Map<String, dynamic> json) => _$LikedTendersDataFromJson(json);

 final  List<LikedTenderFeedback>? _feedback;
@override List<LikedTenderFeedback>? get feedback {
  final value = _feedback;
  if (value == null) return null;
  if (_feedback is EqualUnmodifiableListView) return _feedback;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(value);
}

@override final  Meta? meta;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _LikedTendersData&&const DeepCollectionEquality().equals(other._feedback, _feedback)&&(identical(other.meta, meta) || other.meta == meta));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_feedback),meta);

@override
String toString() {
  return 'LikedTendersData(feedback: $feedback, meta: $meta)';
}


}

/// @nodoc
abstract mixin class _$LikedTendersDataCopyWith<$Res> implements $LikedTendersDataCopyWith<$Res> {
  factory _$LikedTendersDataCopyWith(_LikedTendersData value, $Res Function(_LikedTendersData) _then) = __$LikedTendersDataCopyWithImpl;
@override @useResult
$Res call({
 List<LikedTenderFeedback>? feedback, Meta? meta
});


@override $MetaCopyWith<$Res>? get meta;

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

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

/// Create a copy of LikedTendersData
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? feedback = freezed,Object? meta = freezed,}) {
  return _then(_LikedTendersData(
feedback: freezed == feedback ? _self._feedback : feedback // ignore: cast_nullable_to_non_nullable
as List<LikedTenderFeedback>?,meta: freezed == meta ? _self.meta : meta // ignore: cast_nullable_to_non_nullable
as Meta?,
  ));
}

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

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

// dart format on
