2023-04-27 10:13:38 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// 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 ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
' 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 ' ) ;
PinMetadata _ $PinMetadataFromJson ( Map < String , dynamic > json ) {
return _PinMetadata . fromJson ( json ) ;
}
/// @nodoc
mixin _ $PinMetadata {
bool get defaultValue = > throw _privateConstructorUsedError ;
int get totalAttempts = > throw _privateConstructorUsedError ;
int get attemptsRemaining = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PinMetadataCopyWith < PinMetadata > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PinMetadataCopyWith < $Res > {
factory $PinMetadataCopyWith (
PinMetadata value , $Res Function ( PinMetadata ) then ) =
_ $PinMetadataCopyWithImpl < $Res , PinMetadata > ;
@ useResult
$Res call ( { bool defaultValue , int totalAttempts , int attemptsRemaining } ) ;
}
/// @nodoc
class _ $PinMetadataCopyWithImpl < $Res , $Val extends PinMetadata >
implements $PinMetadataCopyWith < $Res > {
_ $PinMetadataCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? defaultValue = null ,
Object ? totalAttempts = null ,
Object ? attemptsRemaining = null ,
} ) {
return _then ( _value . copyWith (
defaultValue: null = = defaultValue
? _value . defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool ,
totalAttempts: null = = totalAttempts
? _value . totalAttempts
: totalAttempts // ignore: cast_nullable_to_non_nullable
as int ,
attemptsRemaining: null = = attemptsRemaining
? _value . attemptsRemaining
: attemptsRemaining // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PinMetadataImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $PinMetadataCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $PinMetadataImplCopyWith (
_ $PinMetadataImpl value , $Res Function ( _ $PinMetadataImpl ) then ) =
__ $ $PinMetadataImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call ( { bool defaultValue , int totalAttempts , int attemptsRemaining } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PinMetadataImplCopyWithImpl < $Res >
extends _ $PinMetadataCopyWithImpl < $Res , _ $PinMetadataImpl >
implements _ $ $PinMetadataImplCopyWith < $Res > {
__ $ $PinMetadataImplCopyWithImpl (
_ $PinMetadataImpl _value , $Res Function ( _ $PinMetadataImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? defaultValue = null ,
Object ? totalAttempts = null ,
Object ? attemptsRemaining = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PinMetadataImpl (
2023-04-27 10:13:38 +03:00
null = = defaultValue
? _value . defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool ,
null = = totalAttempts
? _value . totalAttempts
: totalAttempts // ignore: cast_nullable_to_non_nullable
as int ,
null = = attemptsRemaining
? _value . attemptsRemaining
: attemptsRemaining // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $PinMetadataImpl implements _PinMetadata {
_ $PinMetadataImpl (
this . defaultValue , this . totalAttempts , this . attemptsRemaining ) ;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _ $PinMetadataImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PinMetadataImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final bool defaultValue ;
@ override
final int totalAttempts ;
@ override
final int attemptsRemaining ;
@ override
String toString ( ) {
return ' PinMetadata(defaultValue: $ defaultValue , totalAttempts: $ totalAttempts , attemptsRemaining: $ attemptsRemaining ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PinMetadataImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . defaultValue , defaultValue ) | |
other . defaultValue = = defaultValue ) & &
( identical ( other . totalAttempts , totalAttempts ) | |
other . totalAttempts = = totalAttempts ) & &
( identical ( other . attemptsRemaining , attemptsRemaining ) | |
other . attemptsRemaining = = attemptsRemaining ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = >
Object . hash ( runtimeType , defaultValue , totalAttempts , attemptsRemaining ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PinMetadataImplCopyWith < _ $PinMetadataImpl > get copyWith = >
__ $ $PinMetadataImplCopyWithImpl < _ $PinMetadataImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $PinMetadataImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _PinMetadata implements PinMetadata {
factory _PinMetadata ( final bool defaultValue , final int totalAttempts ,
2023-11-15 10:56:52 +03:00
final int attemptsRemaining ) = _ $PinMetadataImpl ;
2023-04-27 10:13:38 +03:00
factory _PinMetadata . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $PinMetadataImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
bool get defaultValue ;
@ override
int get totalAttempts ;
@ override
int get attemptsRemaining ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PinMetadataImplCopyWith < _ $PinMetadataImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $PinVerificationStatus {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) success ,
required TResult Function ( int attemptsRemaining ) failure ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? success ,
TResult ? Function ( int attemptsRemaining ) ? failure ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? success ,
TResult Function ( int attemptsRemaining ) ? failure ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _PinSuccess value ) success ,
required TResult Function ( _PinFailure value ) failure ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _PinSuccess value ) ? success ,
TResult ? Function ( _PinFailure value ) ? failure ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _PinSuccess value ) ? success ,
TResult Function ( _PinFailure value ) ? failure ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PinVerificationStatusCopyWith < $Res > {
factory $PinVerificationStatusCopyWith ( PinVerificationStatus value ,
$Res Function ( PinVerificationStatus ) then ) =
_ $PinVerificationStatusCopyWithImpl < $Res , PinVerificationStatus > ;
}
/// @nodoc
class _ $PinVerificationStatusCopyWithImpl < $Res ,
$Val extends PinVerificationStatus >
implements $PinVerificationStatusCopyWith < $Res > {
_ $PinVerificationStatusCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PinSuccessImplCopyWith < $Res > {
factory _ $ $PinSuccessImplCopyWith (
_ $PinSuccessImpl value , $Res Function ( _ $PinSuccessImpl ) then ) =
__ $ $PinSuccessImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PinSuccessImplCopyWithImpl < $Res >
extends _ $PinVerificationStatusCopyWithImpl < $Res , _ $PinSuccessImpl >
implements _ $ $PinSuccessImplCopyWith < $Res > {
__ $ $PinSuccessImplCopyWithImpl (
_ $PinSuccessImpl _value , $Res Function ( _ $PinSuccessImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $PinSuccessImpl implements _PinSuccess {
const _ $PinSuccessImpl ( ) ;
2023-04-27 10:13:38 +03:00
@ override
String toString ( ) {
return ' PinVerificationStatus.success() ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
2023-11-15 10:56:52 +03:00
( other . runtimeType = = runtimeType & & other is _ $PinSuccessImpl ) ;
2023-04-27 10:13:38 +03:00
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) success ,
required TResult Function ( int attemptsRemaining ) failure ,
} ) {
return success ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? success ,
TResult ? Function ( int attemptsRemaining ) ? failure ,
} ) {
return success ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? success ,
TResult Function ( int attemptsRemaining ) ? failure ,
required TResult orElse ( ) ,
} ) {
if ( success ! = null ) {
return success ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _PinSuccess value ) success ,
required TResult Function ( _PinFailure value ) failure ,
} ) {
return success ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _PinSuccess value ) ? success ,
TResult ? Function ( _PinFailure value ) ? failure ,
} ) {
return success ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _PinSuccess value ) ? success ,
TResult Function ( _PinFailure value ) ? failure ,
required TResult orElse ( ) ,
} ) {
if ( success ! = null ) {
return success ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _PinSuccess implements PinVerificationStatus {
2023-11-15 10:56:52 +03:00
const factory _PinSuccess ( ) = _ $PinSuccessImpl ;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PinFailureImplCopyWith < $Res > {
factory _ $ $PinFailureImplCopyWith (
_ $PinFailureImpl value , $Res Function ( _ $PinFailureImpl ) then ) =
__ $ $PinFailureImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ useResult
$Res call ( { int attemptsRemaining } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PinFailureImplCopyWithImpl < $Res >
extends _ $PinVerificationStatusCopyWithImpl < $Res , _ $PinFailureImpl >
implements _ $ $PinFailureImplCopyWith < $Res > {
__ $ $PinFailureImplCopyWithImpl (
_ $PinFailureImpl _value , $Res Function ( _ $PinFailureImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? attemptsRemaining = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PinFailureImpl (
2023-04-27 10:13:38 +03:00
null = = attemptsRemaining
? _value . attemptsRemaining
: attemptsRemaining // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $PinFailureImpl implements _PinFailure {
_ $PinFailureImpl ( this . attemptsRemaining ) ;
2023-04-27 10:13:38 +03:00
@ override
final int attemptsRemaining ;
@ override
String toString ( ) {
return ' PinVerificationStatus.failure(attemptsRemaining: $ attemptsRemaining ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PinFailureImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . attemptsRemaining , attemptsRemaining ) | |
other . attemptsRemaining = = attemptsRemaining ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , attemptsRemaining ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PinFailureImplCopyWith < _ $PinFailureImpl > get copyWith = >
__ $ $PinFailureImplCopyWithImpl < _ $PinFailureImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) success ,
required TResult Function ( int attemptsRemaining ) failure ,
} ) {
return failure ( attemptsRemaining ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? success ,
TResult ? Function ( int attemptsRemaining ) ? failure ,
} ) {
return failure ? . call ( attemptsRemaining ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? success ,
TResult Function ( int attemptsRemaining ) ? failure ,
required TResult orElse ( ) ,
} ) {
if ( failure ! = null ) {
return failure ( attemptsRemaining ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _PinSuccess value ) success ,
required TResult Function ( _PinFailure value ) failure ,
} ) {
return failure ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _PinSuccess value ) ? success ,
TResult ? Function ( _PinFailure value ) ? failure ,
} ) {
return failure ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _PinSuccess value ) ? success ,
TResult Function ( _PinFailure value ) ? failure ,
required TResult orElse ( ) ,
} ) {
if ( failure ! = null ) {
return failure ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _PinFailure implements PinVerificationStatus {
2023-11-15 10:56:52 +03:00
factory _PinFailure ( final int attemptsRemaining ) = _ $PinFailureImpl ;
2023-04-27 10:13:38 +03:00
int get attemptsRemaining ;
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PinFailureImplCopyWith < _ $PinFailureImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
ManagementKeyMetadata _ $ManagementKeyMetadataFromJson (
Map < String , dynamic > json ) {
return _ManagementKeyMetadata . fromJson ( json ) ;
}
/// @nodoc
mixin _ $ManagementKeyMetadata {
ManagementKeyType get keyType = > throw _privateConstructorUsedError ;
bool get defaultValue = > throw _privateConstructorUsedError ;
TouchPolicy get touchPolicy = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$ManagementKeyMetadataCopyWith < ManagementKeyMetadata > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ManagementKeyMetadataCopyWith < $Res > {
factory $ManagementKeyMetadataCopyWith ( ManagementKeyMetadata value ,
$Res Function ( ManagementKeyMetadata ) then ) =
_ $ManagementKeyMetadataCopyWithImpl < $Res , ManagementKeyMetadata > ;
@ useResult
$Res call (
{ ManagementKeyType keyType , bool defaultValue , TouchPolicy touchPolicy } ) ;
}
/// @nodoc
class _ $ManagementKeyMetadataCopyWithImpl < $Res ,
$Val extends ManagementKeyMetadata >
implements $ManagementKeyMetadataCopyWith < $Res > {
_ $ManagementKeyMetadataCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? keyType = null ,
Object ? defaultValue = null ,
Object ? touchPolicy = null ,
} ) {
return _then ( _value . copyWith (
keyType: null = = keyType
? _value . keyType
: keyType // ignore: cast_nullable_to_non_nullable
as ManagementKeyType ,
defaultValue: null = = defaultValue
? _value . defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool ,
touchPolicy: null = = touchPolicy
? _value . touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy ,
) as $Val ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $ManagementKeyMetadataImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $ManagementKeyMetadataCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $ManagementKeyMetadataImplCopyWith (
_ $ManagementKeyMetadataImpl value ,
$Res Function ( _ $ManagementKeyMetadataImpl ) then ) =
__ $ $ManagementKeyMetadataImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call (
{ ManagementKeyType keyType , bool defaultValue , TouchPolicy touchPolicy } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $ManagementKeyMetadataImplCopyWithImpl < $Res >
extends _ $ManagementKeyMetadataCopyWithImpl < $Res ,
_ $ManagementKeyMetadataImpl >
implements _ $ $ManagementKeyMetadataImplCopyWith < $Res > {
__ $ $ManagementKeyMetadataImplCopyWithImpl ( _ $ManagementKeyMetadataImpl _value ,
$Res Function ( _ $ManagementKeyMetadataImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? keyType = null ,
Object ? defaultValue = null ,
Object ? touchPolicy = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $ManagementKeyMetadataImpl (
2023-04-27 10:13:38 +03:00
null = = keyType
? _value . keyType
: keyType // ignore: cast_nullable_to_non_nullable
as ManagementKeyType ,
null = = defaultValue
? _value . defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool ,
null = = touchPolicy
? _value . touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $ManagementKeyMetadataImpl implements _ManagementKeyMetadata {
_ $ManagementKeyMetadataImpl (
this . keyType , this . defaultValue , this . touchPolicy ) ;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _ $ManagementKeyMetadataImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $ManagementKeyMetadataImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final ManagementKeyType keyType ;
@ override
final bool defaultValue ;
@ override
final TouchPolicy touchPolicy ;
@ override
String toString ( ) {
return ' ManagementKeyMetadata(keyType: $ keyType , defaultValue: $ defaultValue , touchPolicy: $ touchPolicy ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $ManagementKeyMetadataImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . keyType , keyType ) | | other . keyType = = keyType ) & &
( identical ( other . defaultValue , defaultValue ) | |
other . defaultValue = = defaultValue ) & &
( identical ( other . touchPolicy , touchPolicy ) | |
other . touchPolicy = = touchPolicy ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = >
Object . hash ( runtimeType , keyType , defaultValue , touchPolicy ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $ManagementKeyMetadataImplCopyWith < _ $ManagementKeyMetadataImpl >
get copyWith = > __ $ $ManagementKeyMetadataImplCopyWithImpl <
_ $ManagementKeyMetadataImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $ManagementKeyMetadataImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _ManagementKeyMetadata implements ManagementKeyMetadata {
factory _ManagementKeyMetadata (
final ManagementKeyType keyType ,
final bool defaultValue ,
2023-11-15 10:56:52 +03:00
final TouchPolicy touchPolicy ) = _ $ManagementKeyMetadataImpl ;
2023-04-27 10:13:38 +03:00
factory _ManagementKeyMetadata . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $ManagementKeyMetadataImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
ManagementKeyType get keyType ;
@ override
bool get defaultValue ;
@ override
TouchPolicy get touchPolicy ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $ManagementKeyMetadataImplCopyWith < _ $ManagementKeyMetadataImpl >
get copyWith = > throw _privateConstructorUsedError ;
2023-04-27 10:13:38 +03:00
}
SlotMetadata _ $SlotMetadataFromJson ( Map < String , dynamic > json ) {
return _SlotMetadata . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SlotMetadata {
KeyType get keyType = > throw _privateConstructorUsedError ;
PinPolicy get pinPolicy = > throw _privateConstructorUsedError ;
TouchPolicy get touchPolicy = > throw _privateConstructorUsedError ;
bool get generated = > throw _privateConstructorUsedError ;
String get publicKeyEncoded = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$SlotMetadataCopyWith < SlotMetadata > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SlotMetadataCopyWith < $Res > {
factory $SlotMetadataCopyWith (
SlotMetadata value , $Res Function ( SlotMetadata ) then ) =
_ $SlotMetadataCopyWithImpl < $Res , SlotMetadata > ;
@ useResult
$Res call (
{ KeyType keyType ,
PinPolicy pinPolicy ,
TouchPolicy touchPolicy ,
bool generated ,
String publicKeyEncoded } ) ;
}
/// @nodoc
class _ $SlotMetadataCopyWithImpl < $Res , $Val extends SlotMetadata >
implements $SlotMetadataCopyWith < $Res > {
_ $SlotMetadataCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? keyType = null ,
Object ? pinPolicy = null ,
Object ? touchPolicy = null ,
Object ? generated = null ,
Object ? publicKeyEncoded = null ,
} ) {
return _then ( _value . copyWith (
keyType: null = = keyType
? _value . keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType ,
pinPolicy: null = = pinPolicy
? _value . pinPolicy
: pinPolicy // ignore: cast_nullable_to_non_nullable
as PinPolicy ,
touchPolicy: null = = touchPolicy
? _value . touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy ,
generated: null = = generated
? _value . generated
: generated // ignore: cast_nullable_to_non_nullable
as bool ,
publicKeyEncoded: null = = publicKeyEncoded
? _value . publicKeyEncoded
: publicKeyEncoded // ignore: cast_nullable_to_non_nullable
as String ,
) as $Val ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $SlotMetadataImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $SlotMetadataCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $SlotMetadataImplCopyWith (
_ $SlotMetadataImpl value , $Res Function ( _ $SlotMetadataImpl ) then ) =
__ $ $SlotMetadataImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call (
{ KeyType keyType ,
PinPolicy pinPolicy ,
TouchPolicy touchPolicy ,
bool generated ,
String publicKeyEncoded } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $SlotMetadataImplCopyWithImpl < $Res >
extends _ $SlotMetadataCopyWithImpl < $Res , _ $SlotMetadataImpl >
implements _ $ $SlotMetadataImplCopyWith < $Res > {
__ $ $SlotMetadataImplCopyWithImpl (
_ $SlotMetadataImpl _value , $Res Function ( _ $SlotMetadataImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? keyType = null ,
Object ? pinPolicy = null ,
Object ? touchPolicy = null ,
Object ? generated = null ,
Object ? publicKeyEncoded = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $SlotMetadataImpl (
2023-04-27 10:13:38 +03:00
null = = keyType
? _value . keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType ,
null = = pinPolicy
? _value . pinPolicy
: pinPolicy // ignore: cast_nullable_to_non_nullable
as PinPolicy ,
null = = touchPolicy
? _value . touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy ,
null = = generated
? _value . generated
: generated // ignore: cast_nullable_to_non_nullable
as bool ,
null = = publicKeyEncoded
? _value . publicKeyEncoded
: publicKeyEncoded // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $SlotMetadataImpl implements _SlotMetadata {
_ $SlotMetadataImpl ( this . keyType , this . pinPolicy , this . touchPolicy ,
2023-04-27 10:13:38 +03:00
this . generated , this . publicKeyEncoded ) ;
2023-11-15 10:56:52 +03:00
factory _ $SlotMetadataImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SlotMetadataImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final KeyType keyType ;
@ override
final PinPolicy pinPolicy ;
@ override
final TouchPolicy touchPolicy ;
@ override
final bool generated ;
@ override
final String publicKeyEncoded ;
@ override
String toString ( ) {
return ' SlotMetadata(keyType: $ keyType , pinPolicy: $ pinPolicy , touchPolicy: $ touchPolicy , generated: $ generated , publicKeyEncoded: $ publicKeyEncoded ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $SlotMetadataImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . keyType , keyType ) | | other . keyType = = keyType ) & &
( identical ( other . pinPolicy , pinPolicy ) | |
other . pinPolicy = = pinPolicy ) & &
( identical ( other . touchPolicy , touchPolicy ) | |
other . touchPolicy = = touchPolicy ) & &
( identical ( other . generated , generated ) | |
other . generated = = generated ) & &
( identical ( other . publicKeyEncoded , publicKeyEncoded ) | |
other . publicKeyEncoded = = publicKeyEncoded ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , keyType , pinPolicy , touchPolicy ,
generated , publicKeyEncoded ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $SlotMetadataImplCopyWith < _ $SlotMetadataImpl > get copyWith = >
__ $ $SlotMetadataImplCopyWithImpl < _ $SlotMetadataImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $SlotMetadataImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _SlotMetadata implements SlotMetadata {
factory _SlotMetadata (
final KeyType keyType ,
final PinPolicy pinPolicy ,
final TouchPolicy touchPolicy ,
final bool generated ,
2023-11-15 10:56:52 +03:00
final String publicKeyEncoded ) = _ $SlotMetadataImpl ;
2023-04-27 10:13:38 +03:00
factory _SlotMetadata . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $SlotMetadataImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
KeyType get keyType ;
@ override
PinPolicy get pinPolicy ;
@ override
TouchPolicy get touchPolicy ;
@ override
bool get generated ;
@ override
String get publicKeyEncoded ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $SlotMetadataImplCopyWith < _ $SlotMetadataImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
PivStateMetadata _ $PivStateMetadataFromJson ( Map < String , dynamic > json ) {
return _PivStateMetadata . fromJson ( json ) ;
}
/// @nodoc
mixin _ $PivStateMetadata {
ManagementKeyMetadata get managementKeyMetadata = >
throw _privateConstructorUsedError ;
PinMetadata get pinMetadata = > throw _privateConstructorUsedError ;
PinMetadata get pukMetadata = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PivStateMetadataCopyWith < PivStateMetadata > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivStateMetadataCopyWith < $Res > {
factory $PivStateMetadataCopyWith (
PivStateMetadata value , $Res Function ( PivStateMetadata ) then ) =
_ $PivStateMetadataCopyWithImpl < $Res , PivStateMetadata > ;
@ useResult
$Res call (
{ ManagementKeyMetadata managementKeyMetadata ,
PinMetadata pinMetadata ,
PinMetadata pukMetadata } ) ;
$ManagementKeyMetadataCopyWith < $Res > get managementKeyMetadata ;
$PinMetadataCopyWith < $Res > get pinMetadata ;
$PinMetadataCopyWith < $Res > get pukMetadata ;
}
/// @nodoc
class _ $PivStateMetadataCopyWithImpl < $Res , $Val extends PivStateMetadata >
implements $PivStateMetadataCopyWith < $Res > {
_ $PivStateMetadataCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? managementKeyMetadata = null ,
Object ? pinMetadata = null ,
Object ? pukMetadata = null ,
} ) {
return _then ( _value . copyWith (
managementKeyMetadata: null = = managementKeyMetadata
? _value . managementKeyMetadata
: managementKeyMetadata // ignore: cast_nullable_to_non_nullable
as ManagementKeyMetadata ,
pinMetadata: null = = pinMetadata
? _value . pinMetadata
: pinMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata ,
pukMetadata: null = = pukMetadata
? _value . pukMetadata
: pukMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata ,
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$ManagementKeyMetadataCopyWith < $Res > get managementKeyMetadata {
return $ManagementKeyMetadataCopyWith < $Res > ( _value . managementKeyMetadata ,
( value ) {
return _then ( _value . copyWith ( managementKeyMetadata: value ) as $Val ) ;
} ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$PinMetadataCopyWith < $Res > get pinMetadata {
return $PinMetadataCopyWith < $Res > ( _value . pinMetadata , ( value ) {
return _then ( _value . copyWith ( pinMetadata: value ) as $Val ) ;
} ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$PinMetadataCopyWith < $Res > get pukMetadata {
return $PinMetadataCopyWith < $Res > ( _value . pukMetadata , ( value ) {
return _then ( _value . copyWith ( pukMetadata: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PivStateMetadataImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $PivStateMetadataCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $PivStateMetadataImplCopyWith ( _ $PivStateMetadataImpl value ,
$Res Function ( _ $PivStateMetadataImpl ) then ) =
__ $ $PivStateMetadataImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call (
{ ManagementKeyMetadata managementKeyMetadata ,
PinMetadata pinMetadata ,
PinMetadata pukMetadata } ) ;
@ override
$ManagementKeyMetadataCopyWith < $Res > get managementKeyMetadata ;
@ override
$PinMetadataCopyWith < $Res > get pinMetadata ;
@ override
$PinMetadataCopyWith < $Res > get pukMetadata ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PivStateMetadataImplCopyWithImpl < $Res >
extends _ $PivStateMetadataCopyWithImpl < $Res , _ $PivStateMetadataImpl >
implements _ $ $PivStateMetadataImplCopyWith < $Res > {
__ $ $PivStateMetadataImplCopyWithImpl ( _ $PivStateMetadataImpl _value ,
$Res Function ( _ $PivStateMetadataImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? managementKeyMetadata = null ,
Object ? pinMetadata = null ,
Object ? pukMetadata = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PivStateMetadataImpl (
2023-04-27 10:13:38 +03:00
managementKeyMetadata: null = = managementKeyMetadata
? _value . managementKeyMetadata
: managementKeyMetadata // ignore: cast_nullable_to_non_nullable
as ManagementKeyMetadata ,
pinMetadata: null = = pinMetadata
? _value . pinMetadata
: pinMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata ,
pukMetadata: null = = pukMetadata
? _value . pukMetadata
: pukMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $PivStateMetadataImpl implements _PivStateMetadata {
_ $PivStateMetadataImpl (
2023-04-27 10:13:38 +03:00
{ required this . managementKeyMetadata ,
required this . pinMetadata ,
required this . pukMetadata } ) ;
2023-11-15 10:56:52 +03:00
factory _ $PivStateMetadataImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PivStateMetadataImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final ManagementKeyMetadata managementKeyMetadata ;
@ override
final PinMetadata pinMetadata ;
@ override
final PinMetadata pukMetadata ;
@ override
String toString ( ) {
return ' PivStateMetadata(managementKeyMetadata: $ managementKeyMetadata , pinMetadata: $ pinMetadata , pukMetadata: $ pukMetadata ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PivStateMetadataImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . managementKeyMetadata , managementKeyMetadata ) | |
other . managementKeyMetadata = = managementKeyMetadata ) & &
( identical ( other . pinMetadata , pinMetadata ) | |
other . pinMetadata = = pinMetadata ) & &
( identical ( other . pukMetadata , pukMetadata ) | |
other . pukMetadata = = pukMetadata ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = >
Object . hash ( runtimeType , managementKeyMetadata , pinMetadata , pukMetadata ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PivStateMetadataImplCopyWith < _ $PivStateMetadataImpl > get copyWith = >
__ $ $PivStateMetadataImplCopyWithImpl < _ $PivStateMetadataImpl > (
this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $PivStateMetadataImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _PivStateMetadata implements PivStateMetadata {
factory _PivStateMetadata (
{ required final ManagementKeyMetadata managementKeyMetadata ,
required final PinMetadata pinMetadata ,
2023-11-15 10:56:52 +03:00
required final PinMetadata pukMetadata } ) = _ $PivStateMetadataImpl ;
2023-04-27 10:13:38 +03:00
factory _PivStateMetadata . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $PivStateMetadataImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
ManagementKeyMetadata get managementKeyMetadata ;
@ override
PinMetadata get pinMetadata ;
@ override
PinMetadata get pukMetadata ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PivStateMetadataImplCopyWith < _ $PivStateMetadataImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
PivState _ $PivStateFromJson ( Map < String , dynamic > json ) {
return _PivState . fromJson ( json ) ;
}
/// @nodoc
mixin _ $PivState {
Version get version = > throw _privateConstructorUsedError ;
bool get authenticated = > throw _privateConstructorUsedError ;
bool get derivedKey = > throw _privateConstructorUsedError ;
bool get storedKey = > throw _privateConstructorUsedError ;
int get pinAttempts = > throw _privateConstructorUsedError ;
String ? get chuid = > throw _privateConstructorUsedError ;
String ? get ccc = > throw _privateConstructorUsedError ;
PivStateMetadata ? get metadata = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PivStateCopyWith < PivState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivStateCopyWith < $Res > {
factory $PivStateCopyWith ( PivState value , $Res Function ( PivState ) then ) =
_ $PivStateCopyWithImpl < $Res , PivState > ;
@ useResult
$Res call (
{ Version version ,
bool authenticated ,
bool derivedKey ,
bool storedKey ,
int pinAttempts ,
String ? chuid ,
String ? ccc ,
PivStateMetadata ? metadata } ) ;
$VersionCopyWith < $Res > get version ;
$PivStateMetadataCopyWith < $Res > ? get metadata ;
}
/// @nodoc
class _ $PivStateCopyWithImpl < $Res , $Val extends PivState >
implements $PivStateCopyWith < $Res > {
_ $PivStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? version = null ,
Object ? authenticated = null ,
Object ? derivedKey = null ,
Object ? storedKey = null ,
Object ? pinAttempts = null ,
Object ? chuid = freezed ,
Object ? ccc = freezed ,
Object ? metadata = freezed ,
} ) {
return _then ( _value . copyWith (
version: null = = version
? _value . version
: version // ignore: cast_nullable_to_non_nullable
as Version ,
authenticated: null = = authenticated
? _value . authenticated
: authenticated // ignore: cast_nullable_to_non_nullable
as bool ,
derivedKey: null = = derivedKey
? _value . derivedKey
: derivedKey // ignore: cast_nullable_to_non_nullable
as bool ,
storedKey: null = = storedKey
? _value . storedKey
: storedKey // ignore: cast_nullable_to_non_nullable
as bool ,
pinAttempts: null = = pinAttempts
? _value . pinAttempts
: pinAttempts // ignore: cast_nullable_to_non_nullable
as int ,
chuid: freezed = = chuid
? _value . chuid
: chuid // ignore: cast_nullable_to_non_nullable
as String ? ,
ccc: freezed = = ccc
? _value . ccc
: ccc // ignore: cast_nullable_to_non_nullable
as String ? ,
metadata: freezed = = metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as PivStateMetadata ? ,
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$VersionCopyWith < $Res > get version {
return $VersionCopyWith < $Res > ( _value . version , ( value ) {
return _then ( _value . copyWith ( version: value ) as $Val ) ;
} ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$PivStateMetadataCopyWith < $Res > ? get metadata {
if ( _value . metadata = = null ) {
return null ;
}
return $PivStateMetadataCopyWith < $Res > ( _value . metadata ! , ( value ) {
return _then ( _value . copyWith ( metadata: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PivStateImplCopyWith < $Res >
implements $PivStateCopyWith < $Res > {
factory _ $ $PivStateImplCopyWith (
_ $PivStateImpl value , $Res Function ( _ $PivStateImpl ) then ) =
__ $ $PivStateImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call (
{ Version version ,
bool authenticated ,
bool derivedKey ,
bool storedKey ,
int pinAttempts ,
String ? chuid ,
String ? ccc ,
PivStateMetadata ? metadata } ) ;
@ override
$VersionCopyWith < $Res > get version ;
@ override
$PivStateMetadataCopyWith < $Res > ? get metadata ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PivStateImplCopyWithImpl < $Res >
extends _ $PivStateCopyWithImpl < $Res , _ $PivStateImpl >
implements _ $ $PivStateImplCopyWith < $Res > {
__ $ $PivStateImplCopyWithImpl (
_ $PivStateImpl _value , $Res Function ( _ $PivStateImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? version = null ,
Object ? authenticated = null ,
Object ? derivedKey = null ,
Object ? storedKey = null ,
Object ? pinAttempts = null ,
Object ? chuid = freezed ,
Object ? ccc = freezed ,
Object ? metadata = freezed ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PivStateImpl (
2023-04-27 10:13:38 +03:00
version: null = = version
? _value . version
: version // ignore: cast_nullable_to_non_nullable
as Version ,
authenticated: null = = authenticated
? _value . authenticated
: authenticated // ignore: cast_nullable_to_non_nullable
as bool ,
derivedKey: null = = derivedKey
? _value . derivedKey
: derivedKey // ignore: cast_nullable_to_non_nullable
as bool ,
storedKey: null = = storedKey
? _value . storedKey
: storedKey // ignore: cast_nullable_to_non_nullable
as bool ,
pinAttempts: null = = pinAttempts
? _value . pinAttempts
: pinAttempts // ignore: cast_nullable_to_non_nullable
as int ,
chuid: freezed = = chuid
? _value . chuid
: chuid // ignore: cast_nullable_to_non_nullable
as String ? ,
ccc: freezed = = ccc
? _value . ccc
: ccc // ignore: cast_nullable_to_non_nullable
as String ? ,
metadata: freezed = = metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as PivStateMetadata ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $PivStateImpl extends _PivState {
_ $PivStateImpl (
2023-04-27 10:13:38 +03:00
{ required this . version ,
required this . authenticated ,
required this . derivedKey ,
required this . storedKey ,
required this . pinAttempts ,
this . chuid ,
this . ccc ,
this . metadata } )
: super . _ ( ) ;
2023-11-15 10:56:52 +03:00
factory _ $PivStateImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PivStateImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final Version version ;
@ override
final bool authenticated ;
@ override
final bool derivedKey ;
@ override
final bool storedKey ;
@ override
final int pinAttempts ;
@ override
final String ? chuid ;
@ override
final String ? ccc ;
@ override
final PivStateMetadata ? metadata ;
@ override
String toString ( ) {
return ' PivState(version: $ version , authenticated: $ authenticated , derivedKey: $ derivedKey , storedKey: $ storedKey , pinAttempts: $ pinAttempts , chuid: $ chuid , ccc: $ ccc , metadata: $ metadata ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PivStateImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . version , version ) | | other . version = = version ) & &
( identical ( other . authenticated , authenticated ) | |
other . authenticated = = authenticated ) & &
( identical ( other . derivedKey , derivedKey ) | |
other . derivedKey = = derivedKey ) & &
( identical ( other . storedKey , storedKey ) | |
other . storedKey = = storedKey ) & &
( identical ( other . pinAttempts , pinAttempts ) | |
other . pinAttempts = = pinAttempts ) & &
( identical ( other . chuid , chuid ) | | other . chuid = = chuid ) & &
( identical ( other . ccc , ccc ) | | other . ccc = = ccc ) & &
( identical ( other . metadata , metadata ) | |
other . metadata = = metadata ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , version , authenticated ,
derivedKey , storedKey , pinAttempts , chuid , ccc , metadata ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PivStateImplCopyWith < _ $PivStateImpl > get copyWith = >
__ $ $PivStateImplCopyWithImpl < _ $PivStateImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $PivStateImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _PivState extends PivState {
factory _PivState (
{ required final Version version ,
required final bool authenticated ,
required final bool derivedKey ,
required final bool storedKey ,
required final int pinAttempts ,
final String ? chuid ,
final String ? ccc ,
2023-11-15 10:56:52 +03:00
final PivStateMetadata ? metadata } ) = _ $PivStateImpl ;
2023-04-27 10:13:38 +03:00
_PivState . _ ( ) : super . _ ( ) ;
2023-11-15 10:56:52 +03:00
factory _PivState . fromJson ( Map < String , dynamic > json ) =
_ $PivStateImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
Version get version ;
@ override
bool get authenticated ;
@ override
bool get derivedKey ;
@ override
bool get storedKey ;
@ override
int get pinAttempts ;
@ override
String ? get chuid ;
@ override
String ? get ccc ;
@ override
PivStateMetadata ? get metadata ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PivStateImplCopyWith < _ $PivStateImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
CertInfo _ $CertInfoFromJson ( Map < String , dynamic > json ) {
return _CertInfo . fromJson ( json ) ;
}
/// @nodoc
mixin _ $CertInfo {
String get subject = > throw _privateConstructorUsedError ;
String get issuer = > throw _privateConstructorUsedError ;
String get serial = > throw _privateConstructorUsedError ;
String get notValidBefore = > throw _privateConstructorUsedError ;
String get notValidAfter = > throw _privateConstructorUsedError ;
String get fingerprint = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$CertInfoCopyWith < CertInfo > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $CertInfoCopyWith < $Res > {
factory $CertInfoCopyWith ( CertInfo value , $Res Function ( CertInfo ) then ) =
_ $CertInfoCopyWithImpl < $Res , CertInfo > ;
@ useResult
$Res call (
{ String subject ,
String issuer ,
String serial ,
String notValidBefore ,
String notValidAfter ,
String fingerprint } ) ;
}
/// @nodoc
class _ $CertInfoCopyWithImpl < $Res , $Val extends CertInfo >
implements $CertInfoCopyWith < $Res > {
_ $CertInfoCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? subject = null ,
Object ? issuer = null ,
Object ? serial = null ,
Object ? notValidBefore = null ,
Object ? notValidAfter = null ,
Object ? fingerprint = null ,
} ) {
return _then ( _value . copyWith (
subject: null = = subject
? _value . subject
: subject // ignore: cast_nullable_to_non_nullable
as String ,
issuer: null = = issuer
? _value . issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String ,
serial: null = = serial
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
as String ,
notValidBefore: null = = notValidBefore
? _value . notValidBefore
: notValidBefore // ignore: cast_nullable_to_non_nullable
as String ,
notValidAfter: null = = notValidAfter
? _value . notValidAfter
: notValidAfter // ignore: cast_nullable_to_non_nullable
as String ,
fingerprint: null = = fingerprint
? _value . fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as String ,
) as $Val ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $CertInfoImplCopyWith < $Res >
implements $CertInfoCopyWith < $Res > {
factory _ $ $CertInfoImplCopyWith (
_ $CertInfoImpl value , $Res Function ( _ $CertInfoImpl ) then ) =
__ $ $CertInfoImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call (
{ String subject ,
String issuer ,
String serial ,
String notValidBefore ,
String notValidAfter ,
String fingerprint } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $CertInfoImplCopyWithImpl < $Res >
extends _ $CertInfoCopyWithImpl < $Res , _ $CertInfoImpl >
implements _ $ $CertInfoImplCopyWith < $Res > {
__ $ $CertInfoImplCopyWithImpl (
_ $CertInfoImpl _value , $Res Function ( _ $CertInfoImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? subject = null ,
Object ? issuer = null ,
Object ? serial = null ,
Object ? notValidBefore = null ,
Object ? notValidAfter = null ,
Object ? fingerprint = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $CertInfoImpl (
2023-04-27 10:13:38 +03:00
subject: null = = subject
? _value . subject
: subject // ignore: cast_nullable_to_non_nullable
as String ,
issuer: null = = issuer
? _value . issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String ,
serial: null = = serial
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
as String ,
notValidBefore: null = = notValidBefore
? _value . notValidBefore
: notValidBefore // ignore: cast_nullable_to_non_nullable
as String ,
notValidAfter: null = = notValidAfter
? _value . notValidAfter
: notValidAfter // ignore: cast_nullable_to_non_nullable
as String ,
fingerprint: null = = fingerprint
? _value . fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $CertInfoImpl implements _CertInfo {
_ $CertInfoImpl (
2023-04-27 10:13:38 +03:00
{ required this . subject ,
required this . issuer ,
required this . serial ,
required this . notValidBefore ,
required this . notValidAfter ,
required this . fingerprint } ) ;
2023-11-15 10:56:52 +03:00
factory _ $CertInfoImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $CertInfoImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final String subject ;
@ override
final String issuer ;
@ override
final String serial ;
@ override
final String notValidBefore ;
@ override
final String notValidAfter ;
@ override
final String fingerprint ;
@ override
String toString ( ) {
return ' CertInfo(subject: $ subject , issuer: $ issuer , serial: $ serial , notValidBefore: $ notValidBefore , notValidAfter: $ notValidAfter , fingerprint: $ fingerprint ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $CertInfoImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . subject , subject ) | | other . subject = = subject ) & &
( identical ( other . issuer , issuer ) | | other . issuer = = issuer ) & &
( identical ( other . serial , serial ) | | other . serial = = serial ) & &
( identical ( other . notValidBefore , notValidBefore ) | |
other . notValidBefore = = notValidBefore ) & &
( identical ( other . notValidAfter , notValidAfter ) | |
other . notValidAfter = = notValidAfter ) & &
( identical ( other . fingerprint , fingerprint ) | |
other . fingerprint = = fingerprint ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , subject , issuer , serial ,
notValidBefore , notValidAfter , fingerprint ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $CertInfoImplCopyWith < _ $CertInfoImpl > get copyWith = >
__ $ $CertInfoImplCopyWithImpl < _ $CertInfoImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $CertInfoImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _CertInfo implements CertInfo {
factory _CertInfo (
{ required final String subject ,
required final String issuer ,
required final String serial ,
required final String notValidBefore ,
required final String notValidAfter ,
2023-11-15 10:56:52 +03:00
required final String fingerprint } ) = _ $CertInfoImpl ;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _CertInfo . fromJson ( Map < String , dynamic > json ) =
_ $CertInfoImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
String get subject ;
@ override
String get issuer ;
@ override
String get serial ;
@ override
String get notValidBefore ;
@ override
String get notValidAfter ;
@ override
String get fingerprint ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $CertInfoImplCopyWith < _ $CertInfoImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
PivSlot _ $PivSlotFromJson ( Map < String , dynamic > json ) {
return _PivSlot . fromJson ( json ) ;
}
/// @nodoc
mixin _ $PivSlot {
SlotId get slot = > throw _privateConstructorUsedError ;
bool ? get hasKey = > throw _privateConstructorUsedError ;
CertInfo ? get certInfo = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PivSlotCopyWith < PivSlot > get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivSlotCopyWith < $Res > {
factory $PivSlotCopyWith ( PivSlot value , $Res Function ( PivSlot ) then ) =
_ $PivSlotCopyWithImpl < $Res , PivSlot > ;
@ useResult
$Res call ( { SlotId slot , bool ? hasKey , CertInfo ? certInfo } ) ;
$CertInfoCopyWith < $Res > ? get certInfo ;
}
/// @nodoc
class _ $PivSlotCopyWithImpl < $Res , $Val extends PivSlot >
implements $PivSlotCopyWith < $Res > {
_ $PivSlotCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? slot = null ,
Object ? hasKey = freezed ,
Object ? certInfo = freezed ,
} ) {
return _then ( _value . copyWith (
slot: null = = slot
? _value . slot
: slot // ignore: cast_nullable_to_non_nullable
as SlotId ,
hasKey: freezed = = hasKey
? _value . hasKey
: hasKey // ignore: cast_nullable_to_non_nullable
as bool ? ,
certInfo: freezed = = certInfo
? _value . certInfo
: certInfo // ignore: cast_nullable_to_non_nullable
as CertInfo ? ,
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$CertInfoCopyWith < $Res > ? get certInfo {
if ( _value . certInfo = = null ) {
return null ;
}
return $CertInfoCopyWith < $Res > ( _value . certInfo ! , ( value ) {
return _then ( _value . copyWith ( certInfo: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PivSlotImplCopyWith < $Res > implements $PivSlotCopyWith < $Res > {
factory _ $ $PivSlotImplCopyWith (
_ $PivSlotImpl value , $Res Function ( _ $PivSlotImpl ) then ) =
__ $ $PivSlotImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call ( { SlotId slot , bool ? hasKey , CertInfo ? certInfo } ) ;
@ override
$CertInfoCopyWith < $Res > ? get certInfo ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PivSlotImplCopyWithImpl < $Res >
extends _ $PivSlotCopyWithImpl < $Res , _ $PivSlotImpl >
implements _ $ $PivSlotImplCopyWith < $Res > {
__ $ $PivSlotImplCopyWithImpl (
_ $PivSlotImpl _value , $Res Function ( _ $PivSlotImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? slot = null ,
Object ? hasKey = freezed ,
Object ? certInfo = freezed ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PivSlotImpl (
2023-04-27 10:13:38 +03:00
slot: null = = slot
? _value . slot
: slot // ignore: cast_nullable_to_non_nullable
as SlotId ,
hasKey: freezed = = hasKey
? _value . hasKey
: hasKey // ignore: cast_nullable_to_non_nullable
as bool ? ,
certInfo: freezed = = certInfo
? _value . certInfo
: certInfo // ignore: cast_nullable_to_non_nullable
as CertInfo ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $PivSlotImpl implements _PivSlot {
_ $PivSlotImpl ( { required this . slot , this . hasKey , this . certInfo } ) ;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _ $PivSlotImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PivSlotImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final SlotId slot ;
@ override
final bool ? hasKey ;
@ override
final CertInfo ? certInfo ;
@ override
String toString ( ) {
return ' PivSlot(slot: $ slot , hasKey: $ hasKey , certInfo: $ certInfo ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PivSlotImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . slot , slot ) | | other . slot = = slot ) & &
( identical ( other . hasKey , hasKey ) | | other . hasKey = = hasKey ) & &
( identical ( other . certInfo , certInfo ) | |
other . certInfo = = certInfo ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , slot , hasKey , certInfo ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PivSlotImplCopyWith < _ $PivSlotImpl > get copyWith = >
__ $ $PivSlotImplCopyWithImpl < _ $PivSlotImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $PivSlotImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _PivSlot implements PivSlot {
factory _PivSlot (
{ required final SlotId slot ,
final bool ? hasKey ,
2023-11-15 10:56:52 +03:00
final CertInfo ? certInfo } ) = _ $PivSlotImpl ;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _PivSlot . fromJson ( Map < String , dynamic > json ) = _ $PivSlotImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
SlotId get slot ;
@ override
bool ? get hasKey ;
@ override
CertInfo ? get certInfo ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PivSlotImplCopyWith < _ $PivSlotImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
PivExamineResult _ $PivExamineResultFromJson ( Map < String , dynamic > json ) {
switch ( json [ ' runtimeType ' ] ) {
case ' result ' :
return _ExamineResult . fromJson ( json ) ;
case ' invalidPassword ' :
return _InvalidPassword . fromJson ( json ) ;
default :
throw CheckedFromJsonException ( json , ' runtimeType ' , ' PivExamineResult ' ,
' Invalid union type " ${ json [ ' runtimeType ' ] } "! ' ) ;
}
}
/// @nodoc
mixin _ $PivExamineResult {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
required TResult Function (
bool password , KeyType ? keyType , CertInfo ? certInfo )
2023-04-27 10:13:38 +03:00
result ,
required TResult Function ( ) invalidPassword ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
TResult ? Function ( bool password , KeyType ? keyType , CertInfo ? certInfo ) ?
result ,
2023-04-27 10:13:38 +03:00
TResult ? Function ( ) ? invalidPassword ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
TResult Function ( bool password , KeyType ? keyType , CertInfo ? certInfo ) ?
result ,
2023-04-27 10:13:38 +03:00
TResult Function ( ) ? invalidPassword ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _ExamineResult value ) result ,
required TResult Function ( _InvalidPassword value ) invalidPassword ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _ExamineResult value ) ? result ,
TResult ? Function ( _InvalidPassword value ) ? invalidPassword ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _ExamineResult value ) ? result ,
TResult Function ( _InvalidPassword value ) ? invalidPassword ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivExamineResultCopyWith < $Res > {
factory $PivExamineResultCopyWith (
PivExamineResult value , $Res Function ( PivExamineResult ) then ) =
_ $PivExamineResultCopyWithImpl < $Res , PivExamineResult > ;
}
/// @nodoc
class _ $PivExamineResultCopyWithImpl < $Res , $Val extends PivExamineResult >
implements $PivExamineResultCopyWith < $Res > {
_ $PivExamineResultCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $ExamineResultImplCopyWith < $Res > {
factory _ $ $ExamineResultImplCopyWith (
_ $ExamineResultImpl value , $Res Function ( _ $ExamineResultImpl ) then ) =
__ $ $ExamineResultImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ useResult
2023-08-23 16:53:30 +03:00
$Res call ( { bool password , KeyType ? keyType , CertInfo ? certInfo } ) ;
$CertInfoCopyWith < $Res > ? get certInfo ;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $ExamineResultImplCopyWithImpl < $Res >
extends _ $PivExamineResultCopyWithImpl < $Res , _ $ExamineResultImpl >
implements _ $ $ExamineResultImplCopyWith < $Res > {
__ $ $ExamineResultImplCopyWithImpl (
_ $ExamineResultImpl _value , $Res Function ( _ $ExamineResultImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? password = null ,
2023-08-23 16:53:30 +03:00
Object ? keyType = freezed ,
Object ? certInfo = freezed ,
2023-04-27 10:13:38 +03:00
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $ExamineResultImpl (
2023-04-27 10:13:38 +03:00
password: null = = password
? _value . password
: password // ignore: cast_nullable_to_non_nullable
as bool ,
2023-08-23 16:53:30 +03:00
keyType: freezed = = keyType
? _value . keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType ? ,
certInfo: freezed = = certInfo
? _value . certInfo
: certInfo // ignore: cast_nullable_to_non_nullable
as CertInfo ? ,
2023-04-27 10:13:38 +03:00
) ) ;
}
2023-08-23 16:53:30 +03:00
@ override
@ pragma ( ' vm:prefer-inline ' )
$CertInfoCopyWith < $Res > ? get certInfo {
if ( _value . certInfo = = null ) {
return null ;
}
return $CertInfoCopyWith < $Res > ( _value . certInfo ! , ( value ) {
return _then ( _value . copyWith ( certInfo: value ) ) ;
} ) ;
}
2023-04-27 10:13:38 +03:00
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $ExamineResultImpl implements _ExamineResult {
_ $ExamineResultImpl (
2023-04-27 10:13:38 +03:00
{ required this . password ,
2023-08-23 16:53:30 +03:00
required this . keyType ,
required this . certInfo ,
2023-04-27 10:13:38 +03:00
final String ? $type } )
: $type = $type ? ? ' result ' ;
2023-11-15 10:56:52 +03:00
factory _ $ExamineResultImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $ExamineResultImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final bool password ;
@ override
2023-08-23 16:53:30 +03:00
final KeyType ? keyType ;
2023-04-27 10:13:38 +03:00
@ override
2023-08-23 16:53:30 +03:00
final CertInfo ? certInfo ;
2023-04-27 10:13:38 +03:00
@ JsonKey ( name: ' runtimeType ' )
final String $type ;
@ override
String toString ( ) {
2023-08-23 16:53:30 +03:00
return ' PivExamineResult.result(password: $ password , keyType: $ keyType , certInfo: $ certInfo ) ' ;
2023-04-27 10:13:38 +03:00
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $ExamineResultImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . password , password ) | |
other . password = = password ) & &
2023-08-23 16:53:30 +03:00
( identical ( other . keyType , keyType ) | | other . keyType = = keyType ) & &
( identical ( other . certInfo , certInfo ) | |
other . certInfo = = certInfo ) ) ;
2023-04-27 10:13:38 +03:00
}
@ JsonKey ( ignore: true )
@ override
2023-08-23 16:53:30 +03:00
int get hashCode = > Object . hash ( runtimeType , password , keyType , certInfo ) ;
2023-04-27 10:13:38 +03:00
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $ExamineResultImplCopyWith < _ $ExamineResultImpl > get copyWith = >
__ $ $ExamineResultImplCopyWithImpl < _ $ExamineResultImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
required TResult Function (
bool password , KeyType ? keyType , CertInfo ? certInfo )
2023-04-27 10:13:38 +03:00
result ,
required TResult Function ( ) invalidPassword ,
} ) {
2023-08-23 16:53:30 +03:00
return result ( password , keyType , certInfo ) ;
2023-04-27 10:13:38 +03:00
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
TResult ? Function ( bool password , KeyType ? keyType , CertInfo ? certInfo ) ?
result ,
2023-04-27 10:13:38 +03:00
TResult ? Function ( ) ? invalidPassword ,
} ) {
2023-08-23 16:53:30 +03:00
return result ? . call ( password , keyType , certInfo ) ;
2023-04-27 10:13:38 +03:00
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
TResult Function ( bool password , KeyType ? keyType , CertInfo ? certInfo ) ?
result ,
2023-04-27 10:13:38 +03:00
TResult Function ( ) ? invalidPassword ,
required TResult orElse ( ) ,
} ) {
if ( result ! = null ) {
2023-08-23 16:53:30 +03:00
return result ( password , keyType , certInfo ) ;
2023-04-27 10:13:38 +03:00
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _ExamineResult value ) result ,
required TResult Function ( _InvalidPassword value ) invalidPassword ,
} ) {
return result ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _ExamineResult value ) ? result ,
TResult ? Function ( _InvalidPassword value ) ? invalidPassword ,
} ) {
return result ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _ExamineResult value ) ? result ,
TResult Function ( _InvalidPassword value ) ? invalidPassword ,
required TResult orElse ( ) ,
} ) {
if ( result ! = null ) {
return result ( this ) ;
}
return orElse ( ) ;
}
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $ExamineResultImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _ExamineResult implements PivExamineResult {
factory _ExamineResult (
{ required final bool password ,
2023-08-23 16:53:30 +03:00
required final KeyType ? keyType ,
2023-11-15 10:56:52 +03:00
required final CertInfo ? certInfo } ) = _ $ExamineResultImpl ;
2023-04-27 10:13:38 +03:00
factory _ExamineResult . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $ExamineResultImpl . fromJson ;
2023-04-27 10:13:38 +03:00
bool get password ;
2023-08-23 16:53:30 +03:00
KeyType ? get keyType ;
CertInfo ? get certInfo ;
2023-04-27 10:13:38 +03:00
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $ExamineResultImplCopyWith < _ $ExamineResultImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $InvalidPasswordImplCopyWith < $Res > {
factory _ $ $InvalidPasswordImplCopyWith ( _ $InvalidPasswordImpl value ,
$Res Function ( _ $InvalidPasswordImpl ) then ) =
__ $ $InvalidPasswordImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $InvalidPasswordImplCopyWithImpl < $Res >
extends _ $PivExamineResultCopyWithImpl < $Res , _ $InvalidPasswordImpl >
implements _ $ $InvalidPasswordImplCopyWith < $Res > {
__ $ $InvalidPasswordImplCopyWithImpl (
_ $InvalidPasswordImpl _value , $Res Function ( _ $InvalidPasswordImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $InvalidPasswordImpl implements _InvalidPassword {
_ $InvalidPasswordImpl ( { final String ? $type } )
2023-04-27 10:13:38 +03:00
: $type = $type ? ? ' invalidPassword ' ;
2023-11-15 10:56:52 +03:00
factory _ $InvalidPasswordImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $InvalidPasswordImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ JsonKey ( name: ' runtimeType ' )
final String $type ;
@ override
String toString ( ) {
return ' PivExamineResult.invalidPassword() ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
2023-11-15 10:56:52 +03:00
( other . runtimeType = = runtimeType & & other is _ $InvalidPasswordImpl ) ;
2023-04-27 10:13:38 +03:00
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
required TResult Function (
bool password , KeyType ? keyType , CertInfo ? certInfo )
2023-04-27 10:13:38 +03:00
result ,
required TResult Function ( ) invalidPassword ,
} ) {
return invalidPassword ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
TResult ? Function ( bool password , KeyType ? keyType , CertInfo ? certInfo ) ?
result ,
2023-04-27 10:13:38 +03:00
TResult ? Function ( ) ? invalidPassword ,
} ) {
return invalidPassword ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2023-08-23 16:53:30 +03:00
TResult Function ( bool password , KeyType ? keyType , CertInfo ? certInfo ) ?
result ,
2023-04-27 10:13:38 +03:00
TResult Function ( ) ? invalidPassword ,
required TResult orElse ( ) ,
} ) {
if ( invalidPassword ! = null ) {
return invalidPassword ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _ExamineResult value ) result ,
required TResult Function ( _InvalidPassword value ) invalidPassword ,
} ) {
return invalidPassword ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _ExamineResult value ) ? result ,
TResult ? Function ( _InvalidPassword value ) ? invalidPassword ,
} ) {
return invalidPassword ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _ExamineResult value ) ? result ,
TResult Function ( _InvalidPassword value ) ? invalidPassword ,
required TResult orElse ( ) ,
} ) {
if ( invalidPassword ! = null ) {
return invalidPassword ( this ) ;
}
return orElse ( ) ;
}
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $InvalidPasswordImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _InvalidPassword implements PivExamineResult {
2023-11-15 10:56:52 +03:00
factory _InvalidPassword ( ) = _ $InvalidPasswordImpl ;
2023-04-27 10:13:38 +03:00
factory _InvalidPassword . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $InvalidPasswordImpl . fromJson ;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
mixin _ $PivGenerateParameters {
String get subject = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function (
String subject , DateTime validFrom , DateTime validTo )
certificate ,
required TResult Function ( String subject ) csr ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( String subject , DateTime validFrom , DateTime validTo ) ?
certificate ,
TResult ? Function ( String subject ) ? csr ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( String subject , DateTime validFrom , DateTime validTo ) ?
certificate ,
TResult Function ( String subject ) ? csr ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _GenerateCertificate value ) certificate ,
required TResult Function ( _GenerateCsr value ) csr ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _GenerateCertificate value ) ? certificate ,
TResult ? Function ( _GenerateCsr value ) ? csr ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _GenerateCertificate value ) ? certificate ,
TResult Function ( _GenerateCsr value ) ? csr ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PivGenerateParametersCopyWith < PivGenerateParameters > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivGenerateParametersCopyWith < $Res > {
factory $PivGenerateParametersCopyWith ( PivGenerateParameters value ,
$Res Function ( PivGenerateParameters ) then ) =
_ $PivGenerateParametersCopyWithImpl < $Res , PivGenerateParameters > ;
@ useResult
$Res call ( { String subject } ) ;
}
/// @nodoc
class _ $PivGenerateParametersCopyWithImpl < $Res ,
$Val extends PivGenerateParameters >
implements $PivGenerateParametersCopyWith < $Res > {
_ $PivGenerateParametersCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? subject = null ,
} ) {
return _then ( _value . copyWith (
subject: null = = subject
? _value . subject
: subject // ignore: cast_nullable_to_non_nullable
as String ,
) as $Val ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $GenerateCertificateImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $PivGenerateParametersCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $GenerateCertificateImplCopyWith ( _ $GenerateCertificateImpl value ,
$Res Function ( _ $GenerateCertificateImpl ) then ) =
__ $ $GenerateCertificateImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call ( { String subject , DateTime validFrom , DateTime validTo } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $GenerateCertificateImplCopyWithImpl < $Res >
extends _ $PivGenerateParametersCopyWithImpl < $Res , _ $GenerateCertificateImpl >
implements _ $ $GenerateCertificateImplCopyWith < $Res > {
__ $ $GenerateCertificateImplCopyWithImpl ( _ $GenerateCertificateImpl _value ,
$Res Function ( _ $GenerateCertificateImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? subject = null ,
Object ? validFrom = null ,
Object ? validTo = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $GenerateCertificateImpl (
2023-04-27 10:13:38 +03:00
subject: null = = subject
? _value . subject
: subject // ignore: cast_nullable_to_non_nullable
as String ,
validFrom: null = = validFrom
? _value . validFrom
: validFrom // ignore: cast_nullable_to_non_nullable
as DateTime ,
validTo: null = = validTo
? _value . validTo
: validTo // ignore: cast_nullable_to_non_nullable
as DateTime ,
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $GenerateCertificateImpl implements _GenerateCertificate {
_ $GenerateCertificateImpl (
2023-04-27 10:13:38 +03:00
{ required this . subject , required this . validFrom , required this . validTo } ) ;
@ override
final String subject ;
@ override
final DateTime validFrom ;
@ override
final DateTime validTo ;
@ override
String toString ( ) {
return ' PivGenerateParameters.certificate(subject: $ subject , validFrom: $ validFrom , validTo: $ validTo ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $GenerateCertificateImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . subject , subject ) | | other . subject = = subject ) & &
( identical ( other . validFrom , validFrom ) | |
other . validFrom = = validFrom ) & &
( identical ( other . validTo , validTo ) | | other . validTo = = validTo ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , subject , validFrom , validTo ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $GenerateCertificateImplCopyWith < _ $GenerateCertificateImpl > get copyWith = >
__ $ $GenerateCertificateImplCopyWithImpl < _ $GenerateCertificateImpl > (
2023-04-27 10:13:38 +03:00
this , _ $identity ) ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function (
String subject , DateTime validFrom , DateTime validTo )
certificate ,
required TResult Function ( String subject ) csr ,
} ) {
return certificate ( subject , validFrom , validTo ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( String subject , DateTime validFrom , DateTime validTo ) ?
certificate ,
TResult ? Function ( String subject ) ? csr ,
} ) {
return certificate ? . call ( subject , validFrom , validTo ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( String subject , DateTime validFrom , DateTime validTo ) ?
certificate ,
TResult Function ( String subject ) ? csr ,
required TResult orElse ( ) ,
} ) {
if ( certificate ! = null ) {
return certificate ( subject , validFrom , validTo ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _GenerateCertificate value ) certificate ,
required TResult Function ( _GenerateCsr value ) csr ,
} ) {
return certificate ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _GenerateCertificate value ) ? certificate ,
TResult ? Function ( _GenerateCsr value ) ? csr ,
} ) {
return certificate ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _GenerateCertificate value ) ? certificate ,
TResult Function ( _GenerateCsr value ) ? csr ,
required TResult orElse ( ) ,
} ) {
if ( certificate ! = null ) {
return certificate ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _GenerateCertificate implements PivGenerateParameters {
factory _GenerateCertificate (
{ required final String subject ,
required final DateTime validFrom ,
2023-11-15 10:56:52 +03:00
required final DateTime validTo } ) = _ $GenerateCertificateImpl ;
2023-04-27 10:13:38 +03:00
@ override
String get subject ;
DateTime get validFrom ;
DateTime get validTo ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $GenerateCertificateImplCopyWith < _ $GenerateCertificateImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $GenerateCsrImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $PivGenerateParametersCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $GenerateCsrImplCopyWith (
_ $GenerateCsrImpl value , $Res Function ( _ $GenerateCsrImpl ) then ) =
__ $ $GenerateCsrImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call ( { String subject } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $GenerateCsrImplCopyWithImpl < $Res >
extends _ $PivGenerateParametersCopyWithImpl < $Res , _ $GenerateCsrImpl >
implements _ $ $GenerateCsrImplCopyWith < $Res > {
__ $ $GenerateCsrImplCopyWithImpl (
_ $GenerateCsrImpl _value , $Res Function ( _ $GenerateCsrImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? subject = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $GenerateCsrImpl (
2023-04-27 10:13:38 +03:00
subject: null = = subject
? _value . subject
: subject // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $GenerateCsrImpl implements _GenerateCsr {
_ $GenerateCsrImpl ( { required this . subject } ) ;
2023-04-27 10:13:38 +03:00
@ override
final String subject ;
@ override
String toString ( ) {
return ' PivGenerateParameters.csr(subject: $ subject ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $GenerateCsrImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . subject , subject ) | | other . subject = = subject ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , subject ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $GenerateCsrImplCopyWith < _ $GenerateCsrImpl > get copyWith = >
__ $ $GenerateCsrImplCopyWithImpl < _ $GenerateCsrImpl > ( this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function (
String subject , DateTime validFrom , DateTime validTo )
certificate ,
required TResult Function ( String subject ) csr ,
} ) {
return csr ( subject ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( String subject , DateTime validFrom , DateTime validTo ) ?
certificate ,
TResult ? Function ( String subject ) ? csr ,
} ) {
return csr ? . call ( subject ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( String subject , DateTime validFrom , DateTime validTo ) ?
certificate ,
TResult Function ( String subject ) ? csr ,
required TResult orElse ( ) ,
} ) {
if ( csr ! = null ) {
return csr ( subject ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _GenerateCertificate value ) certificate ,
required TResult Function ( _GenerateCsr value ) csr ,
} ) {
return csr ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _GenerateCertificate value ) ? certificate ,
TResult ? Function ( _GenerateCsr value ) ? csr ,
} ) {
return csr ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _GenerateCertificate value ) ? certificate ,
TResult Function ( _GenerateCsr value ) ? csr ,
required TResult orElse ( ) ,
} ) {
if ( csr ! = null ) {
return csr ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _GenerateCsr implements PivGenerateParameters {
2023-11-15 10:56:52 +03:00
factory _GenerateCsr ( { required final String subject } ) = _ $GenerateCsrImpl ;
2023-04-27 10:13:38 +03:00
@ override
String get subject ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $GenerateCsrImplCopyWith < _ $GenerateCsrImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
PivGenerateResult _ $PivGenerateResultFromJson ( Map < String , dynamic > json ) {
return _PivGenerateResult . fromJson ( json ) ;
}
/// @nodoc
mixin _ $PivGenerateResult {
GenerateType get generateType = > throw _privateConstructorUsedError ;
String get publicKey = > throw _privateConstructorUsedError ;
String get result = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PivGenerateResultCopyWith < PivGenerateResult > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivGenerateResultCopyWith < $Res > {
factory $PivGenerateResultCopyWith (
PivGenerateResult value , $Res Function ( PivGenerateResult ) then ) =
_ $PivGenerateResultCopyWithImpl < $Res , PivGenerateResult > ;
@ useResult
$Res call ( { GenerateType generateType , String publicKey , String result } ) ;
}
/// @nodoc
class _ $PivGenerateResultCopyWithImpl < $Res , $Val extends PivGenerateResult >
implements $PivGenerateResultCopyWith < $Res > {
_ $PivGenerateResultCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? generateType = null ,
Object ? publicKey = null ,
Object ? result = null ,
} ) {
return _then ( _value . copyWith (
generateType: null = = generateType
? _value . generateType
: generateType // ignore: cast_nullable_to_non_nullable
as GenerateType ,
publicKey: null = = publicKey
? _value . publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String ,
result: null = = result
? _value . result
: result // ignore: cast_nullable_to_non_nullable
as String ,
) as $Val ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PivGenerateResultImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $PivGenerateResultCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $PivGenerateResultImplCopyWith ( _ $PivGenerateResultImpl value ,
$Res Function ( _ $PivGenerateResultImpl ) then ) =
__ $ $PivGenerateResultImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call ( { GenerateType generateType , String publicKey , String result } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PivGenerateResultImplCopyWithImpl < $Res >
extends _ $PivGenerateResultCopyWithImpl < $Res , _ $PivGenerateResultImpl >
implements _ $ $PivGenerateResultImplCopyWith < $Res > {
__ $ $PivGenerateResultImplCopyWithImpl ( _ $PivGenerateResultImpl _value ,
$Res Function ( _ $PivGenerateResultImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? generateType = null ,
Object ? publicKey = null ,
Object ? result = null ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PivGenerateResultImpl (
2023-04-27 10:13:38 +03:00
generateType: null = = generateType
? _value . generateType
: generateType // ignore: cast_nullable_to_non_nullable
as GenerateType ,
publicKey: null = = publicKey
? _value . publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String ,
result: null = = result
? _value . result
: result // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $PivGenerateResultImpl implements _PivGenerateResult {
_ $PivGenerateResultImpl (
2023-04-27 10:13:38 +03:00
{ required this . generateType ,
required this . publicKey ,
required this . result } ) ;
2023-11-15 10:56:52 +03:00
factory _ $PivGenerateResultImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PivGenerateResultImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final GenerateType generateType ;
@ override
final String publicKey ;
@ override
final String result ;
@ override
String toString ( ) {
return ' PivGenerateResult(generateType: $ generateType , publicKey: $ publicKey , result: $ result ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PivGenerateResultImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . generateType , generateType ) | |
other . generateType = = generateType ) & &
( identical ( other . publicKey , publicKey ) | |
other . publicKey = = publicKey ) & &
( identical ( other . result , result ) | | other . result = = result ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , generateType , publicKey , result ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PivGenerateResultImplCopyWith < _ $PivGenerateResultImpl > get copyWith = >
__ $ $PivGenerateResultImplCopyWithImpl < _ $PivGenerateResultImpl > (
2023-04-27 10:13:38 +03:00
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $PivGenerateResultImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _PivGenerateResult implements PivGenerateResult {
factory _PivGenerateResult (
{ required final GenerateType generateType ,
required final String publicKey ,
2023-11-15 10:56:52 +03:00
required final String result } ) = _ $PivGenerateResultImpl ;
2023-04-27 10:13:38 +03:00
factory _PivGenerateResult . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $PivGenerateResultImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
GenerateType get generateType ;
@ override
String get publicKey ;
@ override
String get result ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PivGenerateResultImplCopyWith < _ $PivGenerateResultImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}
PivImportResult _ $PivImportResultFromJson ( Map < String , dynamic > json ) {
return _PivImportResult . fromJson ( json ) ;
}
/// @nodoc
mixin _ $PivImportResult {
SlotMetadata ? get metadata = > throw _privateConstructorUsedError ;
String ? get publicKey = > throw _privateConstructorUsedError ;
String ? get certificate = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PivImportResultCopyWith < PivImportResult > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PivImportResultCopyWith < $Res > {
factory $PivImportResultCopyWith (
PivImportResult value , $Res Function ( PivImportResult ) then ) =
_ $PivImportResultCopyWithImpl < $Res , PivImportResult > ;
@ useResult
$Res call ( { SlotMetadata ? metadata , String ? publicKey , String ? certificate } ) ;
$SlotMetadataCopyWith < $Res > ? get metadata ;
}
/// @nodoc
class _ $PivImportResultCopyWithImpl < $Res , $Val extends PivImportResult >
implements $PivImportResultCopyWith < $Res > {
_ $PivImportResultCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? metadata = freezed ,
Object ? publicKey = freezed ,
Object ? certificate = freezed ,
} ) {
return _then ( _value . copyWith (
metadata: freezed = = metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as SlotMetadata ? ,
publicKey: freezed = = publicKey
? _value . publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String ? ,
certificate: freezed = = certificate
? _value . certificate
: certificate // ignore: cast_nullable_to_non_nullable
as String ? ,
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$SlotMetadataCopyWith < $Res > ? get metadata {
if ( _value . metadata = = null ) {
return null ;
}
return $SlotMetadataCopyWith < $Res > ( _value . metadata ! , ( value ) {
return _then ( _value . copyWith ( metadata: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $PivImportResultImplCopyWith < $Res >
2023-04-27 10:13:38 +03:00
implements $PivImportResultCopyWith < $Res > {
2023-11-15 10:56:52 +03:00
factory _ $ $PivImportResultImplCopyWith ( _ $PivImportResultImpl value ,
$Res Function ( _ $PivImportResultImpl ) then ) =
__ $ $PivImportResultImplCopyWithImpl < $Res > ;
2023-04-27 10:13:38 +03:00
@ override
@ useResult
$Res call ( { SlotMetadata ? metadata , String ? publicKey , String ? certificate } ) ;
@ override
$SlotMetadataCopyWith < $Res > ? get metadata ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $PivImportResultImplCopyWithImpl < $Res >
extends _ $PivImportResultCopyWithImpl < $Res , _ $PivImportResultImpl >
implements _ $ $PivImportResultImplCopyWith < $Res > {
__ $ $PivImportResultImplCopyWithImpl (
_ $PivImportResultImpl _value , $Res Function ( _ $PivImportResultImpl ) _then )
2023-04-27 10:13:38 +03:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? metadata = freezed ,
Object ? publicKey = freezed ,
Object ? certificate = freezed ,
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $PivImportResultImpl (
2023-04-27 10:13:38 +03:00
metadata: freezed = = metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as SlotMetadata ? ,
publicKey: freezed = = publicKey
? _value . publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String ? ,
certificate: freezed = = certificate
? _value . certificate
: certificate // ignore: cast_nullable_to_non_nullable
as String ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-11-15 10:56:52 +03:00
class _ $PivImportResultImpl implements _PivImportResult {
_ $PivImportResultImpl (
2023-04-27 10:13:38 +03:00
{ required this . metadata ,
required this . publicKey ,
required this . certificate } ) ;
2023-11-15 10:56:52 +03:00
factory _ $PivImportResultImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PivImportResultImplFromJson ( json ) ;
2023-04-27 10:13:38 +03:00
@ override
final SlotMetadata ? metadata ;
@ override
final String ? publicKey ;
@ override
final String ? certificate ;
@ override
String toString ( ) {
return ' PivImportResult(metadata: $ metadata , publicKey: $ publicKey , certificate: $ certificate ) ' ;
}
@ override
2024-01-24 11:36:33 +03:00
bool operator = = ( Object other ) {
2023-04-27 10:13:38 +03:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $PivImportResultImpl & &
2023-04-27 10:13:38 +03:00
( identical ( other . metadata , metadata ) | |
other . metadata = = metadata ) & &
( identical ( other . publicKey , publicKey ) | |
other . publicKey = = publicKey ) & &
( identical ( other . certificate , certificate ) | |
other . certificate = = certificate ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = >
Object . hash ( runtimeType , metadata , publicKey , certificate ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $PivImportResultImplCopyWith < _ $PivImportResultImpl > get copyWith = >
__ $ $PivImportResultImplCopyWithImpl < _ $PivImportResultImpl > (
this , _ $identity ) ;
2023-04-27 10:13:38 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2023-11-15 10:56:52 +03:00
return _ $ $PivImportResultImplToJson (
2023-04-27 10:13:38 +03:00
this ,
) ;
}
}
abstract class _PivImportResult implements PivImportResult {
factory _PivImportResult (
{ required final SlotMetadata ? metadata ,
required final String ? publicKey ,
2023-11-15 10:56:52 +03:00
required final String ? certificate } ) = _ $PivImportResultImpl ;
2023-04-27 10:13:38 +03:00
factory _PivImportResult . fromJson ( Map < String , dynamic > json ) =
2023-11-15 10:56:52 +03:00
_ $PivImportResultImpl . fromJson ;
2023-04-27 10:13:38 +03:00
@ override
SlotMetadata ? get metadata ;
@ override
String ? get publicKey ;
@ override
String ? get certificate ;
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $PivImportResultImplCopyWith < _ $PivImportResultImpl > get copyWith = >
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError ;
}