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

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

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

/// @nodoc
mixin _$FeedbackRequest {

@JsonKey(name: 'feedback_type') String get feedbackType;@JsonKey(name: 'tender_id') String get tenderId;
/// Create a copy of FeedbackRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$FeedbackRequestCopyWith<FeedbackRequest> get copyWith => _$FeedbackRequestCopyWithImpl<FeedbackRequest>(this as FeedbackRequest, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is FeedbackRequest&&(identical(other.feedbackType, feedbackType) || other.feedbackType == feedbackType)&&(identical(other.tenderId, tenderId) || other.tenderId == tenderId));
}

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

@override
String toString() {
  return 'FeedbackRequest(feedbackType: $feedbackType, tenderId: $tenderId)';
}


}

/// @nodoc
abstract mixin class $FeedbackRequestCopyWith<$Res>  {
  factory $FeedbackRequestCopyWith(FeedbackRequest value, $Res Function(FeedbackRequest) _then) = _$FeedbackRequestCopyWithImpl;
@useResult
$Res call({
@JsonKey(name: 'feedback_type') String feedbackType,@JsonKey(name: 'tender_id') String tenderId
});




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

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

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

}


/// Adds pattern-matching-related methods to [FeedbackRequest].
extension FeedbackRequestPatterns on FeedbackRequest {
/// 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( _FeedbackRequest value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _FeedbackRequest() 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( _FeedbackRequest value)  $default,){
final _that = this;
switch (_that) {
case _FeedbackRequest():
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( _FeedbackRequest value)?  $default,){
final _that = this;
switch (_that) {
case _FeedbackRequest() 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: 'feedback_type')  String feedbackType, @JsonKey(name: 'tender_id')  String tenderId)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _FeedbackRequest() when $default != null:
return $default(_that.feedbackType,_that.tenderId);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: 'feedback_type')  String feedbackType, @JsonKey(name: 'tender_id')  String tenderId)  $default,) {final _that = this;
switch (_that) {
case _FeedbackRequest():
return $default(_that.feedbackType,_that.tenderId);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: 'feedback_type')  String feedbackType, @JsonKey(name: 'tender_id')  String tenderId)?  $default,) {final _that = this;
switch (_that) {
case _FeedbackRequest() when $default != null:
return $default(_that.feedbackType,_that.tenderId);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _FeedbackRequest implements FeedbackRequest {
  const _FeedbackRequest({@JsonKey(name: 'feedback_type') required this.feedbackType, @JsonKey(name: 'tender_id') required this.tenderId});
  factory _FeedbackRequest.fromJson(Map<String, dynamic> json) => _$FeedbackRequestFromJson(json);

@override@JsonKey(name: 'feedback_type') final  String feedbackType;
@override@JsonKey(name: 'tender_id') final  String tenderId;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _FeedbackRequest&&(identical(other.feedbackType, feedbackType) || other.feedbackType == feedbackType)&&(identical(other.tenderId, tenderId) || other.tenderId == tenderId));
}

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

@override
String toString() {
  return 'FeedbackRequest(feedbackType: $feedbackType, tenderId: $tenderId)';
}


}

/// @nodoc
abstract mixin class _$FeedbackRequestCopyWith<$Res> implements $FeedbackRequestCopyWith<$Res> {
  factory _$FeedbackRequestCopyWith(_FeedbackRequest value, $Res Function(_FeedbackRequest) _then) = __$FeedbackRequestCopyWithImpl;
@override @useResult
$Res call({
@JsonKey(name: 'feedback_type') String feedbackType,@JsonKey(name: 'tender_id') String tenderId
});




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

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

/// Create a copy of FeedbackRequest
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? feedbackType = null,Object? tenderId = null,}) {
  return _then(_FeedbackRequest(
feedbackType: null == feedbackType ? _self.feedbackType : feedbackType // ignore: cast_nullable_to_non_nullable
as String,tenderId: null == tenderId ? _self.tenderId : tenderId // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

// dart format on
