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

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

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

/// @nodoc
mixin _$TendersResponse {

 TendersData? get data; ErrorModel? get error; String? get message; bool? get success; Meta? get meta;
/// Create a copy of TendersResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$TendersResponseCopyWith<TendersResponse> get copyWith => _$TendersResponseCopyWithImpl<TendersResponse>(this as TendersResponse, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is TendersResponse&&(identical(other.data, data) || other.data == data)&&(identical(other.error, error) || other.error == error)&&(identical(other.message, message) || other.message == message)&&(identical(other.success, success) || other.success == success)&&(identical(other.meta, meta) || other.meta == meta));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,data,error,message,success,meta);

@override
String toString() {
  return 'TendersResponse(data: $data, error: $error, message: $message, success: $success, meta: $meta)';
}


}

/// @nodoc
abstract mixin class $TendersResponseCopyWith<$Res>  {
  factory $TendersResponseCopyWith(TendersResponse value, $Res Function(TendersResponse) _then) = _$TendersResponseCopyWithImpl;
@useResult
$Res call({
 TendersData? data, ErrorModel? error, String? message, bool? success, Meta? meta
});


$TendersDataCopyWith<$Res>? get data;$ErrorModelCopyWith<$Res>? get error;$MetaCopyWith<$Res>? get meta;

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

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

/// Create a copy of TendersResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? data = freezed,Object? error = freezed,Object? message = freezed,Object? success = freezed,Object? meta = freezed,}) {
  return _then(_self.copyWith(
data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
as TendersData?,error: freezed == error ? _self.error : error // ignore: cast_nullable_to_non_nullable
as ErrorModel?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String?,success: freezed == success ? _self.success : success // ignore: cast_nullable_to_non_nullable
as bool?,meta: freezed == meta ? _self.meta : meta // ignore: cast_nullable_to_non_nullable
as Meta?,
  ));
}
/// Create a copy of TendersResponse
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$TendersDataCopyWith<$Res>? get data {
    if (_self.data == null) {
    return null;
  }

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

  return $ErrorModelCopyWith<$Res>(_self.error!, (value) {
    return _then(_self.copyWith(error: value));
  });
}/// Create a copy of TendersResponse
/// 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 [TendersResponse].
extension TendersResponsePatterns on TendersResponse {
/// 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( _TendersResponse value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _TendersResponse() 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( _TendersResponse value)  $default,){
final _that = this;
switch (_that) {
case _TendersResponse():
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( _TendersResponse value)?  $default,){
final _that = this;
switch (_that) {
case _TendersResponse() 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( TendersData? data,  ErrorModel? error,  String? message,  bool? success,  Meta? meta)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _TendersResponse() when $default != null:
return $default(_that.data,_that.error,_that.message,_that.success,_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( TendersData? data,  ErrorModel? error,  String? message,  bool? success,  Meta? meta)  $default,) {final _that = this;
switch (_that) {
case _TendersResponse():
return $default(_that.data,_that.error,_that.message,_that.success,_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( TendersData? data,  ErrorModel? error,  String? message,  bool? success,  Meta? meta)?  $default,) {final _that = this;
switch (_that) {
case _TendersResponse() when $default != null:
return $default(_that.data,_that.error,_that.message,_that.success,_that.meta);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _TendersResponse implements TendersResponse {
  const _TendersResponse({required this.data, required this.error, required this.message, required this.success, required this.meta});
  factory _TendersResponse.fromJson(Map<String, dynamic> json) => _$TendersResponseFromJson(json);

@override final  TendersData? data;
@override final  ErrorModel? error;
@override final  String? message;
@override final  bool? success;
@override final  Meta? meta;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _TendersResponse&&(identical(other.data, data) || other.data == data)&&(identical(other.error, error) || other.error == error)&&(identical(other.message, message) || other.message == message)&&(identical(other.success, success) || other.success == success)&&(identical(other.meta, meta) || other.meta == meta));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,data,error,message,success,meta);

@override
String toString() {
  return 'TendersResponse(data: $data, error: $error, message: $message, success: $success, meta: $meta)';
}


}

/// @nodoc
abstract mixin class _$TendersResponseCopyWith<$Res> implements $TendersResponseCopyWith<$Res> {
  factory _$TendersResponseCopyWith(_TendersResponse value, $Res Function(_TendersResponse) _then) = __$TendersResponseCopyWithImpl;
@override @useResult
$Res call({
 TendersData? data, ErrorModel? error, String? message, bool? success, Meta? meta
});


@override $TendersDataCopyWith<$Res>? get data;@override $ErrorModelCopyWith<$Res>? get error;@override $MetaCopyWith<$Res>? get meta;

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

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

/// Create a copy of TendersResponse
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? data = freezed,Object? error = freezed,Object? message = freezed,Object? success = freezed,Object? meta = freezed,}) {
  return _then(_TendersResponse(
data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
as TendersData?,error: freezed == error ? _self.error : error // ignore: cast_nullable_to_non_nullable
as ErrorModel?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String?,success: freezed == success ? _self.success : success // ignore: cast_nullable_to_non_nullable
as bool?,meta: freezed == meta ? _self.meta : meta // ignore: cast_nullable_to_non_nullable
as Meta?,
  ));
}

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

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

  return $ErrorModelCopyWith<$Res>(_self.error!, (value) {
    return _then(_self.copyWith(error: value));
  });
}/// Create a copy of TendersResponse
/// 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
