2022-03-15 19:16:14 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-05-12 12:06:28 +03:00
// ignore_for_file: type=lint
2022-12-05 17:26:54 +03:00
// 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
2022-03-15 19:16:14 +03:00
part of ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2022-05-12 12:06:28 +03:00
' It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods ' ) ;
2022-03-15 19:16:14 +03:00
FidoState _ $FidoStateFromJson ( Map < String , dynamic > json ) {
return _FidoState . fromJson ( json ) ;
}
/// @nodoc
mixin _ $FidoState {
Map < String , dynamic > get info = > throw _privateConstructorUsedError ;
2022-04-03 12:05:37 +03:00
bool get unlocked = > throw _privateConstructorUsedError ;
2022-03-15 19:16:14 +03:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$FidoStateCopyWith < FidoState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $FidoStateCopyWith < $Res > {
factory $FidoStateCopyWith ( FidoState value , $Res Function ( FidoState ) then ) =
2022-10-19 12:15:48 +03:00
_ $FidoStateCopyWithImpl < $Res , FidoState > ;
@ useResult
2022-04-03 12:05:37 +03:00
$Res call ( { Map < String , dynamic > info , bool unlocked } ) ;
2022-03-15 19:16:14 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $FidoStateCopyWithImpl < $Res , $Val extends FidoState >
implements $FidoStateCopyWith < $Res > {
2022-03-15 19:16:14 +03:00
_ $FidoStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2022-03-15 19:16:14 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-15 19:16:14 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? info = null ,
Object ? unlocked = null ,
2022-03-15 19:16:14 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
info: null = = info
2022-03-15 19:16:14 +03:00
? _value . info
: info // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
2022-10-19 12:15:48 +03:00
unlocked: null = = unlocked
2022-04-03 12:05:37 +03:00
? _value . unlocked
: unlocked // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2022-03-15 19:16:14 +03:00
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_FidoStateCopyWith < $Res > implements $FidoStateCopyWith < $Res > {
factory _ $ $_FidoStateCopyWith (
_ $_FidoState value , $Res Function ( _ $_FidoState ) then ) =
__ $ $_FidoStateCopyWithImpl < $Res > ;
2022-03-15 19:16:14 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2022-04-03 12:05:37 +03:00
$Res call ( { Map < String , dynamic > info , bool unlocked } ) ;
2022-03-15 19:16:14 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class __ $ $_FidoStateCopyWithImpl < $Res >
extends _ $FidoStateCopyWithImpl < $Res , _ $_FidoState >
2022-05-12 12:06:28 +03:00
implements _ $ $_FidoStateCopyWith < $Res > {
__ $ $_FidoStateCopyWithImpl (
_ $_FidoState _value , $Res Function ( _ $_FidoState ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-15 19:16:14 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-15 19:16:14 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? info = null ,
Object ? unlocked = null ,
2022-03-15 19:16:14 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_FidoState (
2022-10-19 12:15:48 +03:00
info: null = = info
2022-05-12 12:06:28 +03:00
? _value . _info
2022-03-15 19:16:14 +03:00
: info // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
2022-10-19 12:15:48 +03:00
unlocked: null = = unlocked
2022-04-03 12:05:37 +03:00
? _value . unlocked
: unlocked // ignore: cast_nullable_to_non_nullable
as bool ,
2022-03-15 19:16:14 +03:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_FidoState extends _FidoState {
2022-05-12 12:06:28 +03:00
_ $_FidoState (
{ required final Map < String , dynamic > info , required this . unlocked } )
: _info = info ,
super . _ ( ) ;
2022-03-15 19:16:14 +03:00
factory _ $_FidoState . fromJson ( Map < String , dynamic > json ) = >
_ $ $_FidoStateFromJson ( json ) ;
2022-05-12 12:06:28 +03:00
final Map < String , dynamic > _info ;
2022-03-15 19:16:14 +03:00
@ override
2022-05-12 12:06:28 +03:00
Map < String , dynamic > get info {
2022-12-05 17:26:54 +03:00
if ( _info is EqualUnmodifiableMapView ) return _info ;
2022-05-12 12:06:28 +03:00
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _info ) ;
}
2022-04-03 12:05:37 +03:00
@ override
final bool unlocked ;
2022-03-15 19:16:14 +03:00
@ override
String toString ( ) {
2022-04-03 12:05:37 +03:00
return ' FidoState(info: $ info , unlocked: $ unlocked ) ' ;
2022-03-15 19:16:14 +03:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_FidoState & &
const DeepCollectionEquality ( ) . equals ( other . _info , _info ) & &
2022-10-19 12:15:48 +03:00
( identical ( other . unlocked , unlocked ) | |
other . unlocked = = unlocked ) ) ;
2022-03-15 19:16:14 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2022-03-15 19:16:14 +03:00
@ override
2022-04-03 12:05:37 +03:00
int get hashCode = > Object . hash (
2022-10-19 12:15:48 +03:00
runtimeType , const DeepCollectionEquality ( ) . hash ( _info ) , unlocked ) ;
2022-03-15 19:16:14 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_FidoStateCopyWith < _ $_FidoState > get copyWith = >
__ $ $_FidoStateCopyWithImpl < _ $_FidoState > ( this , _ $identity ) ;
2022-03-15 19:16:14 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_FidoStateToJson (
this ,
) ;
2022-03-15 19:16:14 +03:00
}
}
abstract class _FidoState extends FidoState {
2022-04-03 12:05:37 +03:00
factory _FidoState (
2022-05-12 12:06:28 +03:00
{ required final Map < String , dynamic > info ,
required final bool unlocked } ) = _ $_FidoState ;
2022-03-15 19:16:14 +03:00
_FidoState . _ ( ) : super . _ ( ) ;
factory _FidoState . fromJson ( Map < String , dynamic > json ) =
_ $_FidoState . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
Map < String , dynamic > get info ;
2022-03-15 19:16:14 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get unlocked ;
2022-04-03 12:05:37 +03:00
@ override
2022-03-15 19:16:14 +03:00
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_FidoStateCopyWith < _ $_FidoState > get copyWith = >
2022-03-15 19:16:14 +03:00
throw _privateConstructorUsedError ;
}
2022-03-17 15:06:48 +03:00
/// @nodoc
mixin _ $PinResult {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) success ,
required TResult Function ( int retries , bool authBlocked ) failed ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( ) ? success ,
TResult ? Function ( int retries , bool authBlocked ) ? failed ,
2022-03-17 15:06:48 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? success ,
TResult Function ( int retries , bool authBlocked ) ? failed ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2022-03-22 16:23:12 +03:00
required TResult Function ( _PinSuccess value ) success ,
required TResult Function ( _PinFailure value ) failed ,
2022-03-17 15:06:48 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _PinSuccess value ) ? success ,
TResult ? Function ( _PinFailure value ) ? failed ,
2022-03-17 15:06:48 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2022-03-22 16:23:12 +03:00
TResult Function ( _PinSuccess value ) ? success ,
TResult Function ( _PinFailure value ) ? failed ,
2022-03-17 15:06:48 +03:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PinResultCopyWith < $Res > {
factory $PinResultCopyWith ( PinResult value , $Res Function ( PinResult ) then ) =
2022-10-19 12:15:48 +03:00
_ $PinResultCopyWithImpl < $Res , PinResult > ;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $PinResultCopyWithImpl < $Res , $Val extends PinResult >
implements $PinResultCopyWith < $Res > {
2022-03-17 15:06:48 +03:00
_ $PinResultCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_PinSuccessCopyWith < $Res > {
factory _ $ $_PinSuccessCopyWith (
_ $_PinSuccess value , $Res Function ( _ $_PinSuccess ) then ) =
__ $ $_PinSuccessCopyWithImpl < $Res > ;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class __ $ $_PinSuccessCopyWithImpl < $Res >
extends _ $PinResultCopyWithImpl < $Res , _ $_PinSuccess >
2022-05-12 12:06:28 +03:00
implements _ $ $_PinSuccessCopyWith < $Res > {
__ $ $_PinSuccessCopyWithImpl (
_ $_PinSuccess _value , $Res Function ( _ $_PinSuccess ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2022-03-22 16:23:12 +03:00
class _ $_PinSuccess implements _PinSuccess {
_ $_PinSuccess ( ) ;
2022-03-17 15:06:48 +03:00
@ override
String toString ( ) {
return ' PinResult.success() ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2022-05-12 12:06:28 +03:00
( other . runtimeType = = runtimeType & & other is _ $_PinSuccess ) ;
2022-03-17 15:06:48 +03:00
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) success ,
required TResult Function ( int retries , bool authBlocked ) failed ,
} ) {
return success ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( ) ? success ,
TResult ? Function ( int retries , bool authBlocked ) ? failed ,
2022-03-17 15:06:48 +03:00
} ) {
return success ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? success ,
TResult Function ( int retries , bool authBlocked ) ? failed ,
required TResult orElse ( ) ,
} ) {
if ( success ! = null ) {
return success ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2022-03-22 16:23:12 +03:00
required TResult Function ( _PinSuccess value ) success ,
required TResult Function ( _PinFailure value ) failed ,
2022-03-17 15:06:48 +03:00
} ) {
return success ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _PinSuccess value ) ? success ,
TResult ? Function ( _PinFailure value ) ? failed ,
2022-03-17 15:06:48 +03:00
} ) {
return success ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2022-03-22 16:23:12 +03:00
TResult Function ( _PinSuccess value ) ? success ,
TResult Function ( _PinFailure value ) ? failed ,
2022-03-17 15:06:48 +03:00
required TResult orElse ( ) ,
} ) {
if ( success ! = null ) {
return success ( this ) ;
}
return orElse ( ) ;
}
}
2022-03-22 16:23:12 +03:00
abstract class _PinSuccess implements PinResult {
factory _PinSuccess ( ) = _ $_PinSuccess ;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_PinFailureCopyWith < $Res > {
factory _ $ $_PinFailureCopyWith (
_ $_PinFailure value , $Res Function ( _ $_PinFailure ) then ) =
__ $ $_PinFailureCopyWithImpl < $Res > ;
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-17 15:06:48 +03:00
$Res call ( { int retries , bool authBlocked } ) ;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class __ $ $_PinFailureCopyWithImpl < $Res >
extends _ $PinResultCopyWithImpl < $Res , _ $_PinFailure >
2022-05-12 12:06:28 +03:00
implements _ $ $_PinFailureCopyWith < $Res > {
__ $ $_PinFailureCopyWithImpl (
_ $_PinFailure _value , $Res Function ( _ $_PinFailure ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-17 15:06:48 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-17 15:06:48 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? retries = null ,
Object ? authBlocked = null ,
2022-03-17 15:06:48 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_PinFailure (
2022-10-19 12:15:48 +03:00
null = = retries
2022-03-17 15:06:48 +03:00
? _value . retries
: retries // ignore: cast_nullable_to_non_nullable
as int ,
2022-10-19 12:15:48 +03:00
null = = authBlocked
2022-03-17 15:06:48 +03:00
? _value . authBlocked
: authBlocked // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
2022-03-22 16:23:12 +03:00
class _ $_PinFailure implements _PinFailure {
_ $_PinFailure ( this . retries , this . authBlocked ) ;
2022-03-17 15:06:48 +03:00
@ override
final int retries ;
@ override
final bool authBlocked ;
@ override
String toString ( ) {
return ' PinResult.failed(retries: $ retries , authBlocked: $ authBlocked ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_PinFailure & &
2022-10-19 12:15:48 +03:00
( identical ( other . retries , retries ) | | other . retries = = retries ) & &
( identical ( other . authBlocked , authBlocked ) | |
other . authBlocked = = authBlocked ) ) ;
2022-03-17 15:06:48 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , retries , authBlocked ) ;
2022-03-17 15:06:48 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_PinFailureCopyWith < _ $_PinFailure > get copyWith = >
__ $ $_PinFailureCopyWithImpl < _ $_PinFailure > ( this , _ $identity ) ;
2022-03-17 15:06:48 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) success ,
required TResult Function ( int retries , bool authBlocked ) failed ,
} ) {
return failed ( retries , authBlocked ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( ) ? success ,
TResult ? Function ( int retries , bool authBlocked ) ? failed ,
2022-03-17 15:06:48 +03:00
} ) {
return failed ? . call ( retries , authBlocked ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? success ,
TResult Function ( int retries , bool authBlocked ) ? failed ,
required TResult orElse ( ) ,
} ) {
if ( failed ! = null ) {
return failed ( retries , authBlocked ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2022-03-22 16:23:12 +03:00
required TResult Function ( _PinSuccess value ) success ,
required TResult Function ( _PinFailure value ) failed ,
2022-03-17 15:06:48 +03:00
} ) {
return failed ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _PinSuccess value ) ? success ,
TResult ? Function ( _PinFailure value ) ? failed ,
2022-03-17 15:06:48 +03:00
} ) {
return failed ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2022-03-22 16:23:12 +03:00
TResult Function ( _PinSuccess value ) ? success ,
TResult Function ( _PinFailure value ) ? failed ,
2022-03-17 15:06:48 +03:00
required TResult orElse ( ) ,
} ) {
if ( failed ! = null ) {
return failed ( this ) ;
}
return orElse ( ) ;
}
}
2022-03-22 16:23:12 +03:00
abstract class _PinFailure implements PinResult {
2022-05-12 12:06:28 +03:00
factory _PinFailure ( final int retries , final bool authBlocked ) =
_ $_PinFailure ;
2022-03-17 15:06:48 +03:00
2022-07-07 11:29:42 +03:00
int get retries ;
bool get authBlocked ;
2022-03-17 15:06:48 +03:00
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_PinFailureCopyWith < _ $_PinFailure > get copyWith = >
2022-03-22 16:23:12 +03:00
throw _privateConstructorUsedError ;
}
2022-03-23 11:49:20 +03:00
Fingerprint _ $FingerprintFromJson ( Map < String , dynamic > json ) {
return _Fingerprint . fromJson ( json ) ;
}
2022-03-22 16:23:12 +03:00
/// @nodoc
mixin _ $Fingerprint {
2022-03-23 11:49:20 +03:00
String get templateId = > throw _privateConstructorUsedError ;
String ? get name = > throw _privateConstructorUsedError ;
2022-03-22 16:23:12 +03:00
2022-03-23 11:49:20 +03:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
$FingerprintCopyWith < Fingerprint > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $FingerprintCopyWith < $Res > {
factory $FingerprintCopyWith (
Fingerprint value , $Res Function ( Fingerprint ) then ) =
2022-10-19 12:15:48 +03:00
_ $FingerprintCopyWithImpl < $Res , Fingerprint > ;
@ useResult
2022-03-23 11:49:20 +03:00
$Res call ( { String templateId , String ? name } ) ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $FingerprintCopyWithImpl < $Res , $Val extends Fingerprint >
implements $FingerprintCopyWith < $Res > {
2022-03-22 16:23:12 +03:00
_ $FingerprintCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? templateId = null ,
2022-03-23 11:49:20 +03:00
Object ? name = freezed ,
2022-03-22 16:23:12 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
templateId: null = = templateId
2022-03-23 11:49:20 +03:00
? _value . templateId
: templateId // ignore: cast_nullable_to_non_nullable
2022-03-22 16:23:12 +03:00
as String ,
2022-10-19 12:15:48 +03:00
name: freezed = = name
2022-03-23 11:49:20 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
2022-03-22 16:23:12 +03:00
as String ? ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2022-03-22 16:23:12 +03:00
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_FingerprintCopyWith < $Res >
2022-03-22 16:23:12 +03:00
implements $FingerprintCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_FingerprintCopyWith (
_ $_Fingerprint value , $Res Function ( _ $_Fingerprint ) then ) =
__ $ $_FingerprintCopyWithImpl < $Res > ;
2022-03-22 16:23:12 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-23 11:49:20 +03:00
$Res call ( { String templateId , String ? name } ) ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class __ $ $_FingerprintCopyWithImpl < $Res >
extends _ $FingerprintCopyWithImpl < $Res , _ $_Fingerprint >
2022-05-12 12:06:28 +03:00
implements _ $ $_FingerprintCopyWith < $Res > {
__ $ $_FingerprintCopyWithImpl (
_ $_Fingerprint _value , $Res Function ( _ $_Fingerprint ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? templateId = null ,
2022-03-23 11:49:20 +03:00
Object ? name = freezed ,
2022-03-22 16:23:12 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_Fingerprint (
2022-10-19 12:15:48 +03:00
null = = templateId
2022-03-23 11:49:20 +03:00
? _value . templateId
: templateId // ignore: cast_nullable_to_non_nullable
2022-03-22 16:23:12 +03:00
as String ,
2022-10-19 12:15:48 +03:00
freezed = = name
2022-03-23 11:49:20 +03:00
? _value . name
: name // ignore: cast_nullable_to_non_nullable
2022-03-22 16:23:12 +03:00
as String ? ,
) ) ;
}
}
/// @nodoc
2022-03-23 11:49:20 +03:00
@ JsonSerializable ( )
class _ $_Fingerprint extends _Fingerprint {
_ $_Fingerprint ( this . templateId , this . name ) : super . _ ( ) ;
2022-03-22 16:23:12 +03:00
2022-03-23 11:49:20 +03:00
factory _ $_Fingerprint . fromJson ( Map < String , dynamic > json ) = >
_ $ $_FingerprintFromJson ( json ) ;
2022-03-22 16:23:12 +03:00
@ override
2022-03-23 11:49:20 +03:00
final String templateId ;
2022-03-22 16:23:12 +03:00
@ override
2022-03-23 11:49:20 +03:00
final String ? name ;
2022-03-22 16:23:12 +03:00
@ override
String toString ( ) {
2022-03-23 11:49:20 +03:00
return ' Fingerprint(templateId: $ templateId , name: $ name ) ' ;
2022-03-22 16:23:12 +03:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_Fingerprint & &
2022-10-19 12:15:48 +03:00
( identical ( other . templateId , templateId ) | |
other . templateId = = templateId ) & &
( identical ( other . name , name ) | | other . name = = name ) ) ;
2022-03-22 16:23:12 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2022-03-22 16:23:12 +03:00
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , templateId , name ) ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_FingerprintCopyWith < _ $_Fingerprint > get copyWith = >
__ $ $_FingerprintCopyWithImpl < _ $_Fingerprint > ( this , _ $identity ) ;
2022-03-23 11:49:20 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_FingerprintToJson (
this ,
) ;
2022-03-23 11:49:20 +03:00
}
2022-03-22 16:23:12 +03:00
}
2022-03-23 11:49:20 +03:00
abstract class _Fingerprint extends Fingerprint {
2022-05-12 12:06:28 +03:00
factory _Fingerprint ( final String templateId , final String ? name ) =
_ $_Fingerprint ;
2022-03-23 11:49:20 +03:00
_Fingerprint . _ ( ) : super . _ ( ) ;
factory _Fingerprint . fromJson ( Map < String , dynamic > json ) =
_ $_Fingerprint . fromJson ;
2022-03-22 16:23:12 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get templateId ;
2022-03-22 16:23:12 +03:00
@ override
2022-07-07 11:29:42 +03:00
String ? get name ;
2022-03-22 16:23:12 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_FingerprintCopyWith < _ $_Fingerprint > get copyWith = >
2022-03-22 16:23:12 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $FingerprintEvent {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int remaining ) capture ,
2022-03-23 11:49:20 +03:00
required TResult Function ( Fingerprint fingerprint ) complete ,
2022-03-22 16:23:12 +03:00
required TResult Function ( int code ) error ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( int remaining ) ? capture ,
TResult ? Function ( Fingerprint fingerprint ) ? complete ,
TResult ? Function ( int code ) ? error ,
2022-03-22 16:23:12 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int remaining ) ? capture ,
2022-03-23 11:49:20 +03:00
TResult Function ( Fingerprint fingerprint ) ? complete ,
2022-03-22 16:23:12 +03:00
TResult Function ( int code ) ? error ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _EventCapture value ) capture ,
required TResult Function ( _EventComplete value ) complete ,
required TResult Function ( _EventError value ) error ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _EventCapture value ) ? capture ,
TResult ? Function ( _EventComplete value ) ? complete ,
TResult ? Function ( _EventError value ) ? error ,
2022-03-22 16:23:12 +03:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _EventCapture value ) ? capture ,
TResult Function ( _EventComplete value ) ? complete ,
TResult Function ( _EventError value ) ? error ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $FingerprintEventCopyWith < $Res > {
factory $FingerprintEventCopyWith (
FingerprintEvent value , $Res Function ( FingerprintEvent ) then ) =
2022-10-19 12:15:48 +03:00
_ $FingerprintEventCopyWithImpl < $Res , FingerprintEvent > ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $FingerprintEventCopyWithImpl < $Res , $Val extends FingerprintEvent >
2022-03-22 16:23:12 +03:00
implements $FingerprintEventCopyWith < $Res > {
_ $FingerprintEventCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_EventCaptureCopyWith < $Res > {
factory _ $ $_EventCaptureCopyWith (
_ $_EventCapture value , $Res Function ( _ $_EventCapture ) then ) =
__ $ $_EventCaptureCopyWithImpl < $Res > ;
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-22 16:23:12 +03:00
$Res call ( { int remaining } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_EventCaptureCopyWithImpl < $Res >
2022-10-19 12:15:48 +03:00
extends _ $FingerprintEventCopyWithImpl < $Res , _ $_EventCapture >
2022-05-12 12:06:28 +03:00
implements _ $ $_EventCaptureCopyWith < $Res > {
__ $ $_EventCaptureCopyWithImpl (
_ $_EventCapture _value , $Res Function ( _ $_EventCapture ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? remaining = null ,
2022-03-22 16:23:12 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_EventCapture (
2022-10-19 12:15:48 +03:00
null = = remaining
2022-03-22 16:23:12 +03:00
? _value . remaining
: remaining // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $_EventCapture implements _EventCapture {
_ $_EventCapture ( this . remaining ) ;
@ override
final int remaining ;
@ override
String toString ( ) {
return ' FingerprintEvent.capture(remaining: $ remaining ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_EventCapture & &
2022-10-19 12:15:48 +03:00
( identical ( other . remaining , remaining ) | |
other . remaining = = remaining ) ) ;
2022-03-22 16:23:12 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , remaining ) ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_EventCaptureCopyWith < _ $_EventCapture > get copyWith = >
__ $ $_EventCaptureCopyWithImpl < _ $_EventCapture > ( this , _ $identity ) ;
2022-03-22 16:23:12 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int remaining ) capture ,
2022-03-23 11:49:20 +03:00
required TResult Function ( Fingerprint fingerprint ) complete ,
2022-03-22 16:23:12 +03:00
required TResult Function ( int code ) error ,
} ) {
return capture ( remaining ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( int remaining ) ? capture ,
TResult ? Function ( Fingerprint fingerprint ) ? complete ,
TResult ? Function ( int code ) ? error ,
2022-03-22 16:23:12 +03:00
} ) {
return capture ? . call ( remaining ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int remaining ) ? capture ,
2022-03-23 11:49:20 +03:00
TResult Function ( Fingerprint fingerprint ) ? complete ,
2022-03-22 16:23:12 +03:00
TResult Function ( int code ) ? error ,
required TResult orElse ( ) ,
} ) {
if ( capture ! = null ) {
return capture ( remaining ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _EventCapture value ) capture ,
required TResult Function ( _EventComplete value ) complete ,
required TResult Function ( _EventError value ) error ,
} ) {
return capture ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _EventCapture value ) ? capture ,
TResult ? Function ( _EventComplete value ) ? complete ,
TResult ? Function ( _EventError value ) ? error ,
2022-03-22 16:23:12 +03:00
} ) {
return capture ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _EventCapture value ) ? capture ,
TResult Function ( _EventComplete value ) ? complete ,
TResult Function ( _EventError value ) ? error ,
required TResult orElse ( ) ,
} ) {
if ( capture ! = null ) {
return capture ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _EventCapture implements FingerprintEvent {
2022-05-12 12:06:28 +03:00
factory _EventCapture ( final int remaining ) = _ $_EventCapture ;
2022-03-22 16:23:12 +03:00
2022-07-07 11:29:42 +03:00
int get remaining ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_EventCaptureCopyWith < _ $_EventCapture > get copyWith = >
2022-03-22 16:23:12 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_EventCompleteCopyWith < $Res > {
factory _ $ $_EventCompleteCopyWith (
_ $_EventComplete value , $Res Function ( _ $_EventComplete ) then ) =
__ $ $_EventCompleteCopyWithImpl < $Res > ;
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-23 11:49:20 +03:00
$Res call ( { Fingerprint fingerprint } ) ;
$FingerprintCopyWith < $Res > get fingerprint ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_EventCompleteCopyWithImpl < $Res >
2022-10-19 12:15:48 +03:00
extends _ $FingerprintEventCopyWithImpl < $Res , _ $_EventComplete >
2022-05-12 12:06:28 +03:00
implements _ $ $_EventCompleteCopyWith < $Res > {
__ $ $_EventCompleteCopyWithImpl (
_ $_EventComplete _value , $Res Function ( _ $_EventComplete ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? fingerprint = null ,
2022-03-22 16:23:12 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_EventComplete (
2022-10-19 12:15:48 +03:00
null = = fingerprint
2022-03-23 11:49:20 +03:00
? _value . fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as Fingerprint ,
2022-03-22 16:23:12 +03:00
) ) ;
}
2022-03-23 11:49:20 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-23 11:49:20 +03:00
$FingerprintCopyWith < $Res > get fingerprint {
return $FingerprintCopyWith < $Res > ( _value . fingerprint , ( value ) {
return _then ( _value . copyWith ( fingerprint: value ) ) ;
} ) ;
}
2022-03-22 16:23:12 +03:00
}
/// @nodoc
class _ $_EventComplete implements _EventComplete {
2022-03-23 11:49:20 +03:00
_ $_EventComplete ( this . fingerprint ) ;
2022-03-22 16:23:12 +03:00
@ override
2022-03-23 11:49:20 +03:00
final Fingerprint fingerprint ;
2022-03-22 16:23:12 +03:00
@ override
String toString ( ) {
2022-03-23 11:49:20 +03:00
return ' FingerprintEvent.complete(fingerprint: $ fingerprint ) ' ;
2022-03-22 16:23:12 +03:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_EventComplete & &
2022-10-19 12:15:48 +03:00
( identical ( other . fingerprint , fingerprint ) | |
other . fingerprint = = fingerprint ) ) ;
2022-03-22 16:23:12 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , fingerprint ) ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_EventCompleteCopyWith < _ $_EventComplete > get copyWith = >
__ $ $_EventCompleteCopyWithImpl < _ $_EventComplete > ( this , _ $identity ) ;
2022-03-22 16:23:12 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int remaining ) capture ,
2022-03-23 11:49:20 +03:00
required TResult Function ( Fingerprint fingerprint ) complete ,
2022-03-22 16:23:12 +03:00
required TResult Function ( int code ) error ,
} ) {
2022-03-23 11:49:20 +03:00
return complete ( fingerprint ) ;
2022-03-22 16:23:12 +03:00
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( int remaining ) ? capture ,
TResult ? Function ( Fingerprint fingerprint ) ? complete ,
TResult ? Function ( int code ) ? error ,
2022-03-22 16:23:12 +03:00
} ) {
2022-03-23 11:49:20 +03:00
return complete ? . call ( fingerprint ) ;
2022-03-22 16:23:12 +03:00
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int remaining ) ? capture ,
2022-03-23 11:49:20 +03:00
TResult Function ( Fingerprint fingerprint ) ? complete ,
2022-03-22 16:23:12 +03:00
TResult Function ( int code ) ? error ,
required TResult orElse ( ) ,
} ) {
if ( complete ! = null ) {
2022-03-23 11:49:20 +03:00
return complete ( fingerprint ) ;
2022-03-22 16:23:12 +03:00
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _EventCapture value ) capture ,
required TResult Function ( _EventComplete value ) complete ,
required TResult Function ( _EventError value ) error ,
} ) {
return complete ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _EventCapture value ) ? capture ,
TResult ? Function ( _EventComplete value ) ? complete ,
TResult ? Function ( _EventError value ) ? error ,
2022-03-22 16:23:12 +03:00
} ) {
return complete ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _EventCapture value ) ? capture ,
TResult Function ( _EventComplete value ) ? complete ,
TResult Function ( _EventError value ) ? error ,
required TResult orElse ( ) ,
} ) {
if ( complete ! = null ) {
return complete ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _EventComplete implements FingerprintEvent {
2022-05-12 12:06:28 +03:00
factory _EventComplete ( final Fingerprint fingerprint ) = _ $_EventComplete ;
2022-03-22 16:23:12 +03:00
2022-07-07 11:29:42 +03:00
Fingerprint get fingerprint ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_EventCompleteCopyWith < _ $_EventComplete > get copyWith = >
2022-03-22 16:23:12 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_EventErrorCopyWith < $Res > {
factory _ $ $_EventErrorCopyWith (
_ $_EventError value , $Res Function ( _ $_EventError ) then ) =
__ $ $_EventErrorCopyWithImpl < $Res > ;
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-22 16:23:12 +03:00
$Res call ( { int code } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_EventErrorCopyWithImpl < $Res >
2022-10-19 12:15:48 +03:00
extends _ $FingerprintEventCopyWithImpl < $Res , _ $_EventError >
2022-05-12 12:06:28 +03:00
implements _ $ $_EventErrorCopyWith < $Res > {
__ $ $_EventErrorCopyWithImpl (
_ $_EventError _value , $Res Function ( _ $_EventError ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? code = null ,
2022-03-22 16:23:12 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_EventError (
2022-10-19 12:15:48 +03:00
null = = code
2022-03-22 16:23:12 +03:00
? _value . code
: code // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $_EventError implements _EventError {
_ $_EventError ( this . code ) ;
@ override
final int code ;
@ override
String toString ( ) {
return ' FingerprintEvent.error(code: $ code ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_EventError & &
2022-10-19 12:15:48 +03:00
( identical ( other . code , code ) | | other . code = = code ) ) ;
2022-03-22 16:23:12 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , code ) ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_EventErrorCopyWith < _ $_EventError > get copyWith = >
__ $ $_EventErrorCopyWithImpl < _ $_EventError > ( this , _ $identity ) ;
2022-03-22 16:23:12 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int remaining ) capture ,
2022-03-23 11:49:20 +03:00
required TResult Function ( Fingerprint fingerprint ) complete ,
2022-03-22 16:23:12 +03:00
required TResult Function ( int code ) error ,
} ) {
return error ( code ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( int remaining ) ? capture ,
TResult ? Function ( Fingerprint fingerprint ) ? complete ,
TResult ? Function ( int code ) ? error ,
2022-03-22 16:23:12 +03:00
} ) {
return error ? . call ( code ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int remaining ) ? capture ,
2022-03-23 11:49:20 +03:00
TResult Function ( Fingerprint fingerprint ) ? complete ,
2022-03-22 16:23:12 +03:00
TResult Function ( int code ) ? error ,
required TResult orElse ( ) ,
} ) {
if ( error ! = null ) {
return error ( code ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _EventCapture value ) capture ,
required TResult Function ( _EventComplete value ) complete ,
required TResult Function ( _EventError value ) error ,
} ) {
return error ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
2022-10-19 12:15:48 +03:00
TResult ? Function ( _EventCapture value ) ? capture ,
TResult ? Function ( _EventComplete value ) ? complete ,
TResult ? Function ( _EventError value ) ? error ,
2022-03-22 16:23:12 +03:00
} ) {
return error ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _EventCapture value ) ? capture ,
TResult Function ( _EventComplete value ) ? complete ,
TResult Function ( _EventError value ) ? error ,
required TResult orElse ( ) ,
} ) {
if ( error ! = null ) {
return error ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _EventError implements FingerprintEvent {
2022-05-12 12:06:28 +03:00
factory _EventError ( final int code ) = _ $_EventError ;
2022-03-22 16:23:12 +03:00
2022-07-07 11:29:42 +03:00
int get code ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_EventErrorCopyWith < _ $_EventError > get copyWith = >
2022-03-22 16:23:12 +03:00
throw _privateConstructorUsedError ;
}
2022-03-23 19:50:49 +03:00
FidoCredential _ $FidoCredentialFromJson ( Map < String , dynamic > json ) {
return _FidoCredential . fromJson ( json ) ;
}
2022-03-22 16:23:12 +03:00
/// @nodoc
mixin _ $FidoCredential {
String get rpId = > throw _privateConstructorUsedError ;
String get credentialId = > throw _privateConstructorUsedError ;
2022-03-23 19:50:49 +03:00
String get userId = > throw _privateConstructorUsedError ;
2022-03-22 16:23:12 +03:00
String get userName = > throw _privateConstructorUsedError ;
2022-03-23 19:50:49 +03:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
$FidoCredentialCopyWith < FidoCredential > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $FidoCredentialCopyWith < $Res > {
factory $FidoCredentialCopyWith (
FidoCredential value , $Res Function ( FidoCredential ) then ) =
2022-10-19 12:15:48 +03:00
_ $FidoCredentialCopyWithImpl < $Res , FidoCredential > ;
@ useResult
2022-03-23 19:50:49 +03:00
$Res call ( { String rpId , String credentialId , String userId , String userName } ) ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $FidoCredentialCopyWithImpl < $Res , $Val extends FidoCredential >
2022-03-22 16:23:12 +03:00
implements $FidoCredentialCopyWith < $Res > {
_ $FidoCredentialCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? rpId = null ,
Object ? credentialId = null ,
Object ? userId = null ,
Object ? userName = null ,
2022-03-22 16:23:12 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
rpId: null = = rpId
2022-03-22 16:23:12 +03:00
? _value . rpId
: rpId // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
credentialId: null = = credentialId
2022-03-22 16:23:12 +03:00
? _value . credentialId
: credentialId // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
userId: null = = userId
2022-03-23 19:50:49 +03:00
? _value . userId
: userId // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
userName: null = = userName
2022-03-22 16:23:12 +03:00
? _value . userName
: userName // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2022-03-22 16:23:12 +03:00
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_FidoCredentialCopyWith < $Res >
2022-03-22 16:23:12 +03:00
implements $FidoCredentialCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_FidoCredentialCopyWith (
_ $_FidoCredential value , $Res Function ( _ $_FidoCredential ) then ) =
__ $ $_FidoCredentialCopyWithImpl < $Res > ;
2022-03-22 16:23:12 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2022-03-23 19:50:49 +03:00
$Res call ( { String rpId , String credentialId , String userId , String userName } ) ;
2022-03-22 16:23:12 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_FidoCredentialCopyWithImpl < $Res >
2022-10-19 12:15:48 +03:00
extends _ $FidoCredentialCopyWithImpl < $Res , _ $_FidoCredential >
2022-05-12 12:06:28 +03:00
implements _ $ $_FidoCredentialCopyWith < $Res > {
__ $ $_FidoCredentialCopyWithImpl (
_ $_FidoCredential _value , $Res Function ( _ $_FidoCredential ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2022-03-22 16:23:12 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-03-22 16:23:12 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? rpId = null ,
Object ? credentialId = null ,
Object ? userId = null ,
Object ? userName = null ,
2022-03-22 16:23:12 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_FidoCredential (
2022-10-19 12:15:48 +03:00
rpId: null = = rpId
2022-03-22 16:23:12 +03:00
? _value . rpId
: rpId // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
credentialId: null = = credentialId
2022-03-22 16:23:12 +03:00
? _value . credentialId
: credentialId // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
userId: null = = userId
2022-03-23 19:50:49 +03:00
? _value . userId
: userId // ignore: cast_nullable_to_non_nullable
as String ,
2022-10-19 12:15:48 +03:00
userName: null = = userName
2022-03-22 16:23:12 +03:00
? _value . userName
: userName // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
2022-03-23 19:50:49 +03:00
@ JsonSerializable ( )
2022-03-22 16:23:12 +03:00
class _ $_FidoCredential implements _FidoCredential {
2022-03-23 19:50:49 +03:00
_ $_FidoCredential (
{ required this . rpId ,
required this . credentialId ,
required this . userId ,
required this . userName } ) ;
factory _ $_FidoCredential . fromJson ( Map < String , dynamic > json ) = >
_ $ $_FidoCredentialFromJson ( json ) ;
2022-03-22 16:23:12 +03:00
@ override
final String rpId ;
@ override
final String credentialId ;
@ override
2022-03-23 19:50:49 +03:00
final String userId ;
@ override
2022-03-22 16:23:12 +03:00
final String userName ;
@ override
String toString ( ) {
2022-03-23 19:50:49 +03:00
return ' FidoCredential(rpId: $ rpId , credentialId: $ credentialId , userId: $ userId , userName: $ userName ) ' ;
2022-03-22 16:23:12 +03:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_FidoCredential & &
2022-10-19 12:15:48 +03:00
( identical ( other . rpId , rpId ) | | other . rpId = = rpId ) & &
( identical ( other . credentialId , credentialId ) | |
other . credentialId = = credentialId ) & &
( identical ( other . userId , userId ) | | other . userId = = userId ) & &
( identical ( other . userName , userName ) | |
other . userName = = userName ) ) ;
2022-03-22 16:23:12 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2022-03-22 16:23:12 +03:00
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = >
Object . hash ( runtimeType , rpId , credentialId , userId , userName ) ;
2022-03-22 16:23:12 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_FidoCredentialCopyWith < _ $_FidoCredential > get copyWith = >
__ $ $_FidoCredentialCopyWithImpl < _ $_FidoCredential > ( this , _ $identity ) ;
2022-03-23 19:50:49 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_FidoCredentialToJson (
this ,
) ;
2022-03-23 19:50:49 +03:00
}
2022-03-22 16:23:12 +03:00
}
abstract class _FidoCredential implements FidoCredential {
2022-03-23 19:50:49 +03:00
factory _FidoCredential (
2022-05-12 12:06:28 +03:00
{ required final String rpId ,
required final String credentialId ,
required final String userId ,
required final String userName } ) = _ $_FidoCredential ;
2022-03-23 19:50:49 +03:00
factory _FidoCredential . fromJson ( Map < String , dynamic > json ) =
_ $_FidoCredential . fromJson ;
2022-03-22 16:23:12 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get rpId ;
2022-03-22 16:23:12 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get credentialId ;
2022-03-22 16:23:12 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get userId ;
2022-03-23 19:50:49 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get userName ;
2022-03-22 16:23:12 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_FidoCredentialCopyWith < _ $_FidoCredential > get copyWith = >
2022-03-17 15:06:48 +03:00
throw _privateConstructorUsedError ;
}