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

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

// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$TwoFASecretEntity {

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



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


@override
int get hashCode => Object.hash(runtimeType,isCreated,item);

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


}

/// @nodoc
abstract mixin class $TwoFASecretEntityCopyWith<$Res>  {
  factory $TwoFASecretEntityCopyWith(TwoFASecretEntity value, $Res Function(TwoFASecretEntity) _then) = _$TwoFASecretEntityCopyWithImpl;
@useResult
$Res call({
 bool isCreated, TwoFASecretItemEntity item
});


$TwoFASecretItemEntityCopyWith<$Res> get item;

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

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

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


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

}
}

}

/// @nodoc


class _TwoFASecretEntity implements TwoFASecretEntity {
  const _TwoFASecretEntity({required this.isCreated, required this.item});
  

@override final  bool isCreated;
@override final  TwoFASecretItemEntity item;

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



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


@override
int get hashCode => Object.hash(runtimeType,isCreated,item);

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


}

/// @nodoc
abstract mixin class _$TwoFASecretEntityCopyWith<$Res> implements $TwoFASecretEntityCopyWith<$Res> {
  factory _$TwoFASecretEntityCopyWith(_TwoFASecretEntity value, $Res Function(_TwoFASecretEntity) _then) = __$TwoFASecretEntityCopyWithImpl;
@override @useResult
$Res call({
 bool isCreated, TwoFASecretItemEntity item
});


@override $TwoFASecretItemEntityCopyWith<$Res> get item;

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

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

/// Create a copy of TwoFASecretEntity
/// 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(_TwoFASecretEntity(
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 TwoFASecretItemEntity,
  ));
}

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

/// @nodoc
mixin _$TwoFASecretItemEntity {

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



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


@override
int get hashCode => Object.hash(runtimeType,secret,qr);

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


}

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




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

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

/// Create a copy of TwoFASecretItemEntity
/// 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 [TwoFASecretItemEntity].
extension TwoFASecretItemEntityPatterns on TwoFASecretItemEntity {
/// 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( _TwoFASecretItemEntity value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _TwoFASecretItemEntity() 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( _TwoFASecretItemEntity value)  $default,){
final _that = this;
switch (_that) {
case _TwoFASecretItemEntity():
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( _TwoFASecretItemEntity value)?  $default,){
final _that = this;
switch (_that) {
case _TwoFASecretItemEntity() 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 _TwoFASecretItemEntity() 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 _TwoFASecretItemEntity():
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 _TwoFASecretItemEntity() when $default != null:
return $default(_that.secret,_that.qr);case _:
  return null;

}
}

}

/// @nodoc


class _TwoFASecretItemEntity implements TwoFASecretItemEntity {
  const _TwoFASecretItemEntity({required this.secret, required this.qr});
  

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

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



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


@override
int get hashCode => Object.hash(runtimeType,secret,qr);

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


}

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




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

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

/// Create a copy of TwoFASecretItemEntity
/// 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(_TwoFASecretItemEntity(
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
