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

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

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

/// @nodoc
mixin _$LikedTenderFeedback {

 String? get id;@JsonKey(name: 'feedback_type') String? get feedbackType;@JsonKey(name: 'updated_at') int? get updatedAt;@JsonKey(name: 'created_at') int? get createdAt;@JsonKey(name: 'tender_id') String? get tenderId;@JsonKey(name: 'customer_id') String? get customerId;@JsonKey(name: 'company_id') String? get companyId; TenderData? get tender;
/// Create a copy of LikedTenderFeedback
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$LikedTenderFeedbackCopyWith<LikedTenderFeedback> get copyWith => _$LikedTenderFeedbackCopyWithImpl<LikedTenderFeedback>(this as LikedTenderFeedback, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is LikedTenderFeedback&&(identical(other.id, id) || other.id == id)&&(identical(other.feedbackType, feedbackType) || other.feedbackType == feedbackType)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.tenderId, tenderId) || other.tenderId == tenderId)&&(identical(other.customerId, customerId) || other.customerId == customerId)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.tender, tender) || other.tender == tender));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,feedbackType,updatedAt,createdAt,tenderId,customerId,companyId,tender);

@override
String toString() {
  return 'LikedTenderFeedback(id: $id, feedbackType: $feedbackType, updatedAt: $updatedAt, createdAt: $createdAt, tenderId: $tenderId, customerId: $customerId, companyId: $companyId, tender: $tender)';
}


}

/// @nodoc
abstract mixin class $LikedTenderFeedbackCopyWith<$Res>  {
  factory $LikedTenderFeedbackCopyWith(LikedTenderFeedback value, $Res Function(LikedTenderFeedback) _then) = _$LikedTenderFeedbackCopyWithImpl;
@useResult
$Res call({
 String? id,@JsonKey(name: 'feedback_type') String? feedbackType,@JsonKey(name: 'updated_at') int? updatedAt,@JsonKey(name: 'created_at') int? createdAt,@JsonKey(name: 'tender_id') String? tenderId,@JsonKey(name: 'customer_id') String? customerId,@JsonKey(name: 'company_id') String? companyId, TenderData? tender
});


$TenderDataCopyWith<$Res>? get tender;

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

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

/// Create a copy of LikedTenderFeedback
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? feedbackType = freezed,Object? updatedAt = freezed,Object? createdAt = freezed,Object? tenderId = freezed,Object? customerId = freezed,Object? companyId = freezed,Object? tender = freezed,}) {
  return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String?,feedbackType: freezed == feedbackType ? _self.feedbackType : feedbackType // ignore: cast_nullable_to_non_nullable
as String?,updatedAt: freezed == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable
as int?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable
as int?,tenderId: freezed == tenderId ? _self.tenderId : tenderId // ignore: cast_nullable_to_non_nullable
as String?,customerId: freezed == customerId ? _self.customerId : customerId // ignore: cast_nullable_to_non_nullable
as String?,companyId: freezed == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as String?,tender: freezed == tender ? _self.tender : tender // ignore: cast_nullable_to_non_nullable
as TenderData?,
  ));
}
/// Create a copy of LikedTenderFeedback
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$TenderDataCopyWith<$Res>? get tender {
    if (_self.tender == null) {
    return null;
  }

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


/// Adds pattern-matching-related methods to [LikedTenderFeedback].
extension LikedTenderFeedbackPatterns on LikedTenderFeedback {
/// 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( _LikedTenderFeedback value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LikedTenderFeedback() 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( _LikedTenderFeedback value)  $default,){
final _that = this;
switch (_that) {
case _LikedTenderFeedback():
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( _LikedTenderFeedback value)?  $default,){
final _that = this;
switch (_that) {
case _LikedTenderFeedback() 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( String? id, @JsonKey(name: 'feedback_type')  String? feedbackType, @JsonKey(name: 'updated_at')  int? updatedAt, @JsonKey(name: 'created_at')  int? createdAt, @JsonKey(name: 'tender_id')  String? tenderId, @JsonKey(name: 'customer_id')  String? customerId, @JsonKey(name: 'company_id')  String? companyId,  TenderData? tender)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LikedTenderFeedback() when $default != null:
return $default(_that.id,_that.feedbackType,_that.updatedAt,_that.createdAt,_that.tenderId,_that.customerId,_that.companyId,_that.tender);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( String? id, @JsonKey(name: 'feedback_type')  String? feedbackType, @JsonKey(name: 'updated_at')  int? updatedAt, @JsonKey(name: 'created_at')  int? createdAt, @JsonKey(name: 'tender_id')  String? tenderId, @JsonKey(name: 'customer_id')  String? customerId, @JsonKey(name: 'company_id')  String? companyId,  TenderData? tender)  $default,) {final _that = this;
switch (_that) {
case _LikedTenderFeedback():
return $default(_that.id,_that.feedbackType,_that.updatedAt,_that.createdAt,_that.tenderId,_that.customerId,_that.companyId,_that.tender);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( String? id, @JsonKey(name: 'feedback_type')  String? feedbackType, @JsonKey(name: 'updated_at')  int? updatedAt, @JsonKey(name: 'created_at')  int? createdAt, @JsonKey(name: 'tender_id')  String? tenderId, @JsonKey(name: 'customer_id')  String? customerId, @JsonKey(name: 'company_id')  String? companyId,  TenderData? tender)?  $default,) {final _that = this;
switch (_that) {
case _LikedTenderFeedback() when $default != null:
return $default(_that.id,_that.feedbackType,_that.updatedAt,_that.createdAt,_that.tenderId,_that.customerId,_that.companyId,_that.tender);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _LikedTenderFeedback implements LikedTenderFeedback {
  const _LikedTenderFeedback({required this.id, @JsonKey(name: 'feedback_type') required this.feedbackType, @JsonKey(name: 'updated_at') required this.updatedAt, @JsonKey(name: 'created_at') required this.createdAt, @JsonKey(name: 'tender_id') required this.tenderId, @JsonKey(name: 'customer_id') required this.customerId, @JsonKey(name: 'company_id') required this.companyId, required this.tender});
  factory _LikedTenderFeedback.fromJson(Map<String, dynamic> json) => _$LikedTenderFeedbackFromJson(json);

@override final  String? id;
@override@JsonKey(name: 'feedback_type') final  String? feedbackType;
@override@JsonKey(name: 'updated_at') final  int? updatedAt;
@override@JsonKey(name: 'created_at') final  int? createdAt;
@override@JsonKey(name: 'tender_id') final  String? tenderId;
@override@JsonKey(name: 'customer_id') final  String? customerId;
@override@JsonKey(name: 'company_id') final  String? companyId;
@override final  TenderData? tender;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _LikedTenderFeedback&&(identical(other.id, id) || other.id == id)&&(identical(other.feedbackType, feedbackType) || other.feedbackType == feedbackType)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.tenderId, tenderId) || other.tenderId == tenderId)&&(identical(other.customerId, customerId) || other.customerId == customerId)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.tender, tender) || other.tender == tender));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,feedbackType,updatedAt,createdAt,tenderId,customerId,companyId,tender);

@override
String toString() {
  return 'LikedTenderFeedback(id: $id, feedbackType: $feedbackType, updatedAt: $updatedAt, createdAt: $createdAt, tenderId: $tenderId, customerId: $customerId, companyId: $companyId, tender: $tender)';
}


}

/// @nodoc
abstract mixin class _$LikedTenderFeedbackCopyWith<$Res> implements $LikedTenderFeedbackCopyWith<$Res> {
  factory _$LikedTenderFeedbackCopyWith(_LikedTenderFeedback value, $Res Function(_LikedTenderFeedback) _then) = __$LikedTenderFeedbackCopyWithImpl;
@override @useResult
$Res call({
 String? id,@JsonKey(name: 'feedback_type') String? feedbackType,@JsonKey(name: 'updated_at') int? updatedAt,@JsonKey(name: 'created_at') int? createdAt,@JsonKey(name: 'tender_id') String? tenderId,@JsonKey(name: 'customer_id') String? customerId,@JsonKey(name: 'company_id') String? companyId, TenderData? tender
});


@override $TenderDataCopyWith<$Res>? get tender;

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

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

/// Create a copy of LikedTenderFeedback
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? feedbackType = freezed,Object? updatedAt = freezed,Object? createdAt = freezed,Object? tenderId = freezed,Object? customerId = freezed,Object? companyId = freezed,Object? tender = freezed,}) {
  return _then(_LikedTenderFeedback(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String?,feedbackType: freezed == feedbackType ? _self.feedbackType : feedbackType // ignore: cast_nullable_to_non_nullable
as String?,updatedAt: freezed == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable
as int?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable
as int?,tenderId: freezed == tenderId ? _self.tenderId : tenderId // ignore: cast_nullable_to_non_nullable
as String?,customerId: freezed == customerId ? _self.customerId : customerId // ignore: cast_nullable_to_non_nullable
as String?,companyId: freezed == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as String?,tender: freezed == tender ? _self.tender : tender // ignore: cast_nullable_to_non_nullable
as TenderData?,
  ));
}

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

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

// dart format on
