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

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

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

/// @nodoc
mixin _$TwoFASecretResponseModel {

 bool get isCreated; TwoFASecretItemResponseModel get item;
/// Create a copy of TwoFASecretResponseModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$TwoFASecretResponseModelCopyWith<TwoFASecretResponseModel> get copyWith => _$TwoFASecretResponseModelCopyWithImpl<TwoFASecretResponseModel>(this as TwoFASecretResponseModel, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is TwoFASecretResponseModel&&(identical(other.isCreated, isCreated) || other.isCreated == isCreated)&&(identical(other.item, item) || other.item == item));
}

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

@override
String toString() {
  return 'TwoFASecretResponseModel(isCreated: $isCreated, item: $item)';
}


}

/// @nodoc
abstract mixin class $TwoFASecretResponseModelCopyWith<$Res>  {
  factory $TwoFASecretResponseModelCopyWith(TwoFASecretResponseModel value, $Res Function(TwoFASecretResponseModel) _then) = _$TwoFASecretResponseModelCopyWithImpl;
@useResult
$Res call({
 bool isCreated, TwoFASecretItemResponseModel item
});


$TwoFASecretItemResponseModelCopyWith<$Res> get item;

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

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

/// Create a copy of TwoFASecretResponseModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? isCreated = null,Object? item = null,}) {
  return _then(_self.copyWith(
isCreated: null == isCreated ? _self.isCreated : isCreated // ignore: cast_nullable_to_non_nullable
as bool,item: null == item ? _self.item : item // ignore: cast_nullable_to_non_nullable
as TwoFASecretItemResponseModel,
  ));
}
/// Create a copy of TwoFASecretResponseModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$TwoFASecretItemResponseModelCopyWith<$Res> get item {
  
  return $TwoFASecretItemResponseModelCopyWith<$Res>(_self.item, (value) {
    return _then(_self.copyWith(item: value));
  });
}
}


/// Adds pattern-matching-related methods to [TwoFASecretResponseModel].
extension TwoFASecretResponseModelPatterns on TwoFASecretResponseModel {
/// 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( _TwoFASecretResponseModel value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _TwoFASecretResponseModel() 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( _TwoFASecretResponseModel value)  $default,){
final _that = this;
switch (_that) {
case _TwoFASecretResponseModel():
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( _TwoFASecretResponseModel value)?  $default,){
final _that = this;
switch (_that) {
case _TwoFASecretResponseModel() 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( bool isCreated,  TwoFASecretItemResponseModel item)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _TwoFASecretResponseModel() when $default != null:
return $default(_that.isCreated,_that.item);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( bool isCreated,  TwoFASecretItemResponseModel item)  $default,) {final _that = this;
switch (_that) {
case _TwoFASecretResponseModel():
return $default(_that.isCreated,_that.item);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( bool isCreated,  TwoFASecretItemResponseModel item)?  $default,) {final _that = this;
switch (_that) {
case _TwoFASecretResponseModel() when $default != null:
return $default(_that.isCreated,_that.item);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _TwoFASecretResponseModel implements TwoFASecretResponseModel {
  const _TwoFASecretResponseModel({required this.isCreated, required this.item});
  factory _TwoFASecretResponseModel.fromJson(Map<String, dynamic> json) => _$TwoFASecretResponseModelFromJson(json);

@override final  bool isCreated;
@override final  TwoFASecretItemResponseModel item;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _TwoFASecretResponseModel&&(identical(other.isCreated, isCreated) || other.isCreated == isCreated)&&(identical(other.item, item) || other.item == item));
}

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

@override
String toString() {
  return 'TwoFASecretResponseModel(isCreated: $isCreated, item: $item)';
}


}

/// @nodoc
abstract mixin class _$TwoFASecretResponseModelCopyWith<$Res> implements $TwoFASecretResponseModelCopyWith<$Res> {
  factory _$TwoFASecretResponseModelCopyWith(_TwoFASecretResponseModel value, $Res Function(_TwoFASecretResponseModel) _then) = __$TwoFASecretResponseModelCopyWithImpl;
@override @useResult
$Res call({
 bool isCreated, TwoFASecretItemResponseModel item
});


@override $TwoFASecretItemResponseModelCopyWith<$Res> get item;

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

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

/// Create a copy of TwoFASecretResponseModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? isCreated = null,Object? item = null,}) {
  return _then(_TwoFASecretResponseModel(
isCreated: null == isCreated ? _self.isCreated : isCreated // ignore: cast_nullable_to_non_nullable
as bool,item: null == item ? _self.item : item // ignore: cast_nullable_to_non_nullable
as TwoFASecretItemResponseModel,
  ));
}

/// Create a copy of TwoFASecretResponseModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$TwoFASecretItemResponseModelCopyWith<$Res> get item {
  
  return $TwoFASecretItemResponseModelCopyWith<$Res>(_self.item, (value) {
    return _then(_self.copyWith(item: value));
  });
}
}


/// @nodoc
mixin _$TwoFASecretItemResponseModel {

 String get secret; String get qr;
/// Create a copy of TwoFASecretItemResponseModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$TwoFASecretItemResponseModelCopyWith<TwoFASecretItemResponseModel> get copyWith => _$TwoFASecretItemResponseModelCopyWithImpl<TwoFASecretItemResponseModel>(this as TwoFASecretItemResponseModel, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is TwoFASecretItemResponseModel&&(identical(other.secret, secret) || other.secret == secret)&&(identical(other.qr, qr) || other.qr == qr));
}

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

@override
String toString() {
  return 'TwoFASecretItemResponseModel(secret: $secret, qr: $qr)';
}


}

/// @nodoc
abstract mixin class $TwoFASecretItemResponseModelCopyWith<$Res>  {
  factory $TwoFASecretItemResponseModelCopyWith(TwoFASecretItemResponseModel value, $Res Function(TwoFASecretItemResponseModel) _then) = _$TwoFASecretItemResponseModelCopyWithImpl;
@useResult
$Res call({
 String secret, String qr
});




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

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

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

}


/// Adds pattern-matching-related methods to [TwoFASecretItemResponseModel].
extension TwoFASecretItemResponseModelPatterns on TwoFASecretItemResponseModel {
/// 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( _TwoFASecretItemResponseModel value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _TwoFASecretItemResponseModel() 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( _TwoFASecretItemResponseModel value)  $default,){
final _that = this;
switch (_that) {
case _TwoFASecretItemResponseModel():
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( _TwoFASecretItemResponseModel value)?  $default,){
final _that = this;
switch (_that) {
case _TwoFASecretItemResponseModel() 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 secret,  String qr)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _TwoFASecretItemResponseModel() when $default != null:
return $default(_that.secret,_that.qr);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 secret,  String qr)  $default,) {final _that = this;
switch (_that) {
case _TwoFASecretItemResponseModel():
return $default(_that.secret,_that.qr);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 secret,  String qr)?  $default,) {final _that = this;
switch (_that) {
case _TwoFASecretItemResponseModel() when $default != null:
return $default(_that.secret,_that.qr);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _TwoFASecretItemResponseModel implements TwoFASecretItemResponseModel {
  const _TwoFASecretItemResponseModel({required this.secret, required this.qr});
  factory _TwoFASecretItemResponseModel.fromJson(Map<String, dynamic> json) => _$TwoFASecretItemResponseModelFromJson(json);

@override final  String secret;
@override final  String qr;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _TwoFASecretItemResponseModel&&(identical(other.secret, secret) || other.secret == secret)&&(identical(other.qr, qr) || other.qr == qr));
}

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

@override
String toString() {
  return 'TwoFASecretItemResponseModel(secret: $secret, qr: $qr)';
}


}

/// @nodoc
abstract mixin class _$TwoFASecretItemResponseModelCopyWith<$Res> implements $TwoFASecretItemResponseModelCopyWith<$Res> {
  factory _$TwoFASecretItemResponseModelCopyWith(_TwoFASecretItemResponseModel value, $Res Function(_TwoFASecretItemResponseModel) _then) = __$TwoFASecretItemResponseModelCopyWithImpl;
@override @useResult
$Res call({
 String secret, String qr
});




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

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

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


}

// dart format on
