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

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

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





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


@override
int get hashCode => runtimeType.hashCode;

@override
String toString() {
  return 'VerifyPhoneEvent()';
}


}

/// @nodoc
class $VerifyPhoneEventCopyWith<$Res>  {
$VerifyPhoneEventCopyWith(VerifyPhoneEvent _, $Res Function(VerifyPhoneEvent) __);
}


/// Adds pattern-matching-related methods to [VerifyPhoneEvent].
extension VerifyPhoneEventPatterns on VerifyPhoneEvent {
/// 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( _Started value)?  started,TResult Function( _VerifyPhoneRegister value)?  verifyPhoneRegister,TResult Function( _VerifyPhoneReset value)?  verifyPhoneReset,required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Started() when started != null:
return started(_that);case _VerifyPhoneRegister() when verifyPhoneRegister != null:
return verifyPhoneRegister(_that);case _VerifyPhoneReset() when verifyPhoneReset != null:
return verifyPhoneReset(_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?>({required TResult Function( _Started value)  started,required TResult Function( _VerifyPhoneRegister value)  verifyPhoneRegister,required TResult Function( _VerifyPhoneReset value)  verifyPhoneReset,}){
final _that = this;
switch (_that) {
case _Started():
return started(_that);case _VerifyPhoneRegister():
return verifyPhoneRegister(_that);case _VerifyPhoneReset():
return verifyPhoneReset(_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( _Started value)?  started,TResult? Function( _VerifyPhoneRegister value)?  verifyPhoneRegister,TResult? Function( _VerifyPhoneReset value)?  verifyPhoneReset,}){
final _that = this;
switch (_that) {
case _Started() when started != null:
return started(_that);case _VerifyPhoneRegister() when verifyPhoneRegister != null:
return verifyPhoneRegister(_that);case _VerifyPhoneReset() when verifyPhoneReset != null:
return verifyPhoneReset(_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()?  started,TResult Function( VerifyPhoneNumberParams params)?  verifyPhoneRegister,TResult Function( VerifyPhoneNumberParams params)?  verifyPhoneReset,required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Started() when started != null:
return started();case _VerifyPhoneRegister() when verifyPhoneRegister != null:
return verifyPhoneRegister(_that.params);case _VerifyPhoneReset() when verifyPhoneReset != null:
return verifyPhoneReset(_that.params);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?>({required TResult Function()  started,required TResult Function( VerifyPhoneNumberParams params)  verifyPhoneRegister,required TResult Function( VerifyPhoneNumberParams params)  verifyPhoneReset,}) {final _that = this;
switch (_that) {
case _Started():
return started();case _VerifyPhoneRegister():
return verifyPhoneRegister(_that.params);case _VerifyPhoneReset():
return verifyPhoneReset(_that.params);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()?  started,TResult? Function( VerifyPhoneNumberParams params)?  verifyPhoneRegister,TResult? Function( VerifyPhoneNumberParams params)?  verifyPhoneReset,}) {final _that = this;
switch (_that) {
case _Started() when started != null:
return started();case _VerifyPhoneRegister() when verifyPhoneRegister != null:
return verifyPhoneRegister(_that.params);case _VerifyPhoneReset() when verifyPhoneReset != null:
return verifyPhoneReset(_that.params);case _:
  return null;

}
}

}

/// @nodoc


class _Started implements VerifyPhoneEvent {
  const _Started();
  






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


@override
int get hashCode => runtimeType.hashCode;

@override
String toString() {
  return 'VerifyPhoneEvent.started()';
}


}




/// @nodoc


class _VerifyPhoneRegister implements VerifyPhoneEvent {
  const _VerifyPhoneRegister(this.params);
  

 final  VerifyPhoneNumberParams params;

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



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


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

@override
String toString() {
  return 'VerifyPhoneEvent.verifyPhoneRegister(params: $params)';
}


}

/// @nodoc
abstract mixin class _$VerifyPhoneRegisterCopyWith<$Res> implements $VerifyPhoneEventCopyWith<$Res> {
  factory _$VerifyPhoneRegisterCopyWith(_VerifyPhoneRegister value, $Res Function(_VerifyPhoneRegister) _then) = __$VerifyPhoneRegisterCopyWithImpl;
@useResult
$Res call({
 VerifyPhoneNumberParams params
});




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

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

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


}

/// @nodoc


class _VerifyPhoneReset implements VerifyPhoneEvent {
  const _VerifyPhoneReset(this.params);
  

 final  VerifyPhoneNumberParams params;

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



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


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

@override
String toString() {
  return 'VerifyPhoneEvent.verifyPhoneReset(params: $params)';
}


}

/// @nodoc
abstract mixin class _$VerifyPhoneResetCopyWith<$Res> implements $VerifyPhoneEventCopyWith<$Res> {
  factory _$VerifyPhoneResetCopyWith(_VerifyPhoneReset value, $Res Function(_VerifyPhoneReset) _then) = __$VerifyPhoneResetCopyWithImpl;
@useResult
$Res call({
 VerifyPhoneNumberParams params
});




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

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

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


}

/// @nodoc
mixin _$VerifyPhoneState {

 RequestStatus get status;
/// Create a copy of VerifyPhoneState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$VerifyPhoneStateCopyWith<VerifyPhoneState> get copyWith => _$VerifyPhoneStateCopyWithImpl<VerifyPhoneState>(this as VerifyPhoneState, _$identity);



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


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

@override
String toString() {
  return 'VerifyPhoneState(status: $status)';
}


}

/// @nodoc
abstract mixin class $VerifyPhoneStateCopyWith<$Res>  {
  factory $VerifyPhoneStateCopyWith(VerifyPhoneState value, $Res Function(VerifyPhoneState) _then) = _$VerifyPhoneStateCopyWithImpl;
@useResult
$Res call({
 RequestStatus status
});




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

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

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

}


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

}
}

}

/// @nodoc


class _VerifyPhoneState implements VerifyPhoneState {
  const _VerifyPhoneState({this.status = RequestStatus.initial});
  

@override@JsonKey() final  RequestStatus status;

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



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


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

@override
String toString() {
  return 'VerifyPhoneState(status: $status)';
}


}

/// @nodoc
abstract mixin class _$VerifyPhoneStateCopyWith<$Res> implements $VerifyPhoneStateCopyWith<$Res> {
  factory _$VerifyPhoneStateCopyWith(_VerifyPhoneState value, $Res Function(_VerifyPhoneState) _then) = __$VerifyPhoneStateCopyWithImpl;
@override @useResult
$Res call({
 RequestStatus status
});




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

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

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


}

// dart format on
