2021-11-19 17:05:57 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-05-12 12:06:28 +03:00
// ignore_for_file: type=lint
2021-11-19 17:05:57 +03:00
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target
part of ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2022-05-12 12:06:28 +03:00
' It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods ' ) ;
2021-11-19 17:05:57 +03:00
OathCredential _ $OathCredentialFromJson ( Map < String , dynamic > json ) {
return _OathCredential . fromJson ( json ) ;
}
/// @nodoc
mixin _ $OathCredential {
String get deviceId = > throw _privateConstructorUsedError ;
String get id = > throw _privateConstructorUsedError ;
String ? get issuer = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
OathType get oathType = > throw _privateConstructorUsedError ;
int get period = > throw _privateConstructorUsedError ;
bool get touchRequired = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$OathCredentialCopyWith < OathCredential > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OathCredentialCopyWith < $Res > {
factory $OathCredentialCopyWith (
OathCredential value , $Res Function ( OathCredential ) then ) =
_ $OathCredentialCopyWithImpl < $Res > ;
$Res call (
{ String deviceId ,
String id ,
String ? issuer ,
String name ,
OathType oathType ,
int period ,
bool touchRequired } ) ;
}
/// @nodoc
class _ $OathCredentialCopyWithImpl < $Res >
implements $OathCredentialCopyWith < $Res > {
_ $OathCredentialCopyWithImpl ( this . _value , this . _then ) ;
final OathCredential _value ;
// ignore: unused_field
final $Res Function ( OathCredential ) _then ;
@ override
$Res call ( {
Object ? deviceId = freezed ,
Object ? id = freezed ,
Object ? issuer = freezed ,
Object ? name = freezed ,
Object ? oathType = freezed ,
Object ? period = freezed ,
Object ? touchRequired = freezed ,
} ) {
return _then ( _value . copyWith (
deviceId: deviceId = = freezed
? _value . deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String ,
id: id = = freezed
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
issuer: issuer = = freezed
? _value . issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String ? ,
name: name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
oathType: oathType = = freezed
? _value . oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType ,
period: period = = freezed
? _value . period
: period // ignore: cast_nullable_to_non_nullable
as int ,
touchRequired: touchRequired = = freezed
? _value . touchRequired
: touchRequired // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_OathCredentialCopyWith < $Res >
2021-11-19 17:05:57 +03:00
implements $OathCredentialCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_OathCredentialCopyWith (
_ $_OathCredential value , $Res Function ( _ $_OathCredential ) then ) =
__ $ $_OathCredentialCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
$Res call (
{ String deviceId ,
String id ,
String ? issuer ,
String name ,
OathType oathType ,
int period ,
bool touchRequired } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_OathCredentialCopyWithImpl < $Res >
2021-11-19 17:05:57 +03:00
extends _ $OathCredentialCopyWithImpl < $Res >
2022-05-12 12:06:28 +03:00
implements _ $ $_OathCredentialCopyWith < $Res > {
__ $ $_OathCredentialCopyWithImpl (
_ $_OathCredential _value , $Res Function ( _ $_OathCredential ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_OathCredential ) ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_OathCredential get _value = > super . _value as _ $_OathCredential ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
Object ? deviceId = freezed ,
Object ? id = freezed ,
Object ? issuer = freezed ,
Object ? name = freezed ,
Object ? oathType = freezed ,
Object ? period = freezed ,
Object ? touchRequired = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_OathCredential (
2021-11-19 17:05:57 +03:00
deviceId = = freezed
? _value . deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String ,
id = = freezed
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
issuer = = freezed
? _value . issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String ? ,
name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
oathType = = freezed
? _value . oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType ,
period = = freezed
? _value . period
: period // ignore: cast_nullable_to_non_nullable
as int ,
touchRequired = = freezed
? _value . touchRequired
: touchRequired // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_OathCredential implements _OathCredential {
_ $_OathCredential ( this . deviceId , this . id , this . issuer , this . name ,
this . oathType , this . period , this . touchRequired ) ;
factory _ $_OathCredential . fromJson ( Map < String , dynamic > json ) = >
_ $ $_OathCredentialFromJson ( json ) ;
@ override
final String deviceId ;
@ override
final String id ;
@ override
final String ? issuer ;
@ override
final String name ;
@ override
final OathType oathType ;
@ override
final int period ;
@ override
final bool touchRequired ;
@ override
String toString ( ) {
return ' OathCredential(deviceId: $ deviceId , id: $ id , issuer: $ issuer , name: $ name , oathType: $ oathType , period: $ period , touchRequired: $ touchRequired ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_OathCredential & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . deviceId , deviceId ) & &
const DeepCollectionEquality ( ) . equals ( other . id , id ) & &
const DeepCollectionEquality ( ) . equals ( other . issuer , issuer ) & &
const DeepCollectionEquality ( ) . equals ( other . name , name ) & &
const DeepCollectionEquality ( ) . equals ( other . oathType , oathType ) & &
const DeepCollectionEquality ( ) . equals ( other . period , period ) & &
const DeepCollectionEquality ( )
. equals ( other . touchRequired , touchRequired ) ) ;
2021-11-19 17:05:57 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2021-11-19 17:05:57 +03:00
@ override
int get hashCode = > Object . hash (
2022-01-12 14:49:04 +03:00
runtimeType ,
const DeepCollectionEquality ( ) . hash ( deviceId ) ,
const DeepCollectionEquality ( ) . hash ( id ) ,
const DeepCollectionEquality ( ) . hash ( issuer ) ,
const DeepCollectionEquality ( ) . hash ( name ) ,
const DeepCollectionEquality ( ) . hash ( oathType ) ,
const DeepCollectionEquality ( ) . hash ( period ) ,
const DeepCollectionEquality ( ) . hash ( touchRequired ) ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_OathCredentialCopyWith < _ $_OathCredential > get copyWith = >
__ $ $_OathCredentialCopyWithImpl < _ $_OathCredential > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_OathCredentialToJson (
this ,
) ;
2021-11-19 17:05:57 +03:00
}
}
abstract class _OathCredential implements OathCredential {
factory _OathCredential (
2022-05-12 12:06:28 +03:00
final String deviceId ,
final String id ,
final String ? issuer ,
final String name ,
final OathType oathType ,
final int period ,
final bool touchRequired ) = _ $_OathCredential ;
2021-11-19 17:05:57 +03:00
factory _OathCredential . fromJson ( Map < String , dynamic > json ) =
_ $_OathCredential . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
String get deviceId ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get id ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
String ? get issuer ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get name ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
OathType get oathType ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get period ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get touchRequired ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_OathCredentialCopyWith < _ $_OathCredential > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
OathCode _ $OathCodeFromJson ( Map < String , dynamic > json ) {
return _OathCode . fromJson ( json ) ;
}
/// @nodoc
mixin _ $OathCode {
String get value = > throw _privateConstructorUsedError ;
int get validFrom = > throw _privateConstructorUsedError ;
int get validTo = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$OathCodeCopyWith < OathCode > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OathCodeCopyWith < $Res > {
factory $OathCodeCopyWith ( OathCode value , $Res Function ( OathCode ) then ) =
_ $OathCodeCopyWithImpl < $Res > ;
$Res call ( { String value , int validFrom , int validTo } ) ;
}
/// @nodoc
class _ $OathCodeCopyWithImpl < $Res > implements $OathCodeCopyWith < $Res > {
_ $OathCodeCopyWithImpl ( this . _value , this . _then ) ;
final OathCode _value ;
// ignore: unused_field
final $Res Function ( OathCode ) _then ;
@ override
$Res call ( {
Object ? value = freezed ,
Object ? validFrom = freezed ,
Object ? validTo = freezed ,
} ) {
return _then ( _value . copyWith (
value: value = = freezed
? _value . value
: value // ignore: cast_nullable_to_non_nullable
as String ,
validFrom: validFrom = = freezed
? _value . validFrom
: validFrom // ignore: cast_nullable_to_non_nullable
as int ,
validTo: validTo = = freezed
? _value . validTo
: validTo // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_OathCodeCopyWith < $Res > implements $OathCodeCopyWith < $Res > {
factory _ $ $_OathCodeCopyWith (
_ $_OathCode value , $Res Function ( _ $_OathCode ) then ) =
__ $ $_OathCodeCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( { String value , int validFrom , int validTo } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_OathCodeCopyWithImpl < $Res > extends _ $OathCodeCopyWithImpl < $Res >
implements _ $ $_OathCodeCopyWith < $Res > {
__ $ $_OathCodeCopyWithImpl (
_ $_OathCode _value , $Res Function ( _ $_OathCode ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_OathCode ) ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_OathCode get _value = > super . _value as _ $_OathCode ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
Object ? value = freezed ,
Object ? validFrom = freezed ,
Object ? validTo = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_OathCode (
2021-11-19 17:05:57 +03:00
value = = freezed
? _value . value
: value // ignore: cast_nullable_to_non_nullable
as String ,
validFrom = = freezed
? _value . validFrom
: validFrom // ignore: cast_nullable_to_non_nullable
as int ,
validTo = = freezed
? _value . validTo
: validTo // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_OathCode implements _OathCode {
_ $_OathCode ( this . value , this . validFrom , this . validTo ) ;
factory _ $_OathCode . fromJson ( Map < String , dynamic > json ) = >
_ $ $_OathCodeFromJson ( json ) ;
@ override
final String value ;
@ override
final int validFrom ;
@ override
final int validTo ;
@ override
String toString ( ) {
return ' OathCode(value: $ value , validFrom: $ validFrom , validTo: $ validTo ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_OathCode & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . value , value ) & &
const DeepCollectionEquality ( ) . equals ( other . validFrom , validFrom ) & &
const DeepCollectionEquality ( ) . equals ( other . validTo , validTo ) ) ;
2021-11-19 17:05:57 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( value ) ,
const DeepCollectionEquality ( ) . hash ( validFrom ) ,
const DeepCollectionEquality ( ) . hash ( validTo ) ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_OathCodeCopyWith < _ $_OathCode > get copyWith = >
__ $ $_OathCodeCopyWithImpl < _ $_OathCode > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_OathCodeToJson (
this ,
) ;
2021-11-19 17:05:57 +03:00
}
}
abstract class _OathCode implements OathCode {
2022-05-12 12:06:28 +03:00
factory _OathCode (
final String value , final int validFrom , final int validTo ) = _ $_OathCode ;
2021-11-19 17:05:57 +03:00
factory _OathCode . fromJson ( Map < String , dynamic > json ) = _ $_OathCode . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
String get value ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get validFrom ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get validTo ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_OathCodeCopyWith < _ $_OathCode > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
2022-05-06 15:27:33 +03:00
OathPair _ $OathPairFromJson ( Map < String , dynamic > json ) {
return _OathPair . fromJson ( json ) ;
}
2021-11-19 17:05:57 +03:00
/// @nodoc
mixin _ $OathPair {
OathCredential get credential = > throw _privateConstructorUsedError ;
OathCode ? get code = > throw _privateConstructorUsedError ;
2022-05-06 15:27:33 +03:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
$OathPairCopyWith < OathPair > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OathPairCopyWith < $Res > {
factory $OathPairCopyWith ( OathPair value , $Res Function ( OathPair ) then ) =
_ $OathPairCopyWithImpl < $Res > ;
$Res call ( { OathCredential credential , OathCode ? code } ) ;
$OathCredentialCopyWith < $Res > get credential ;
$OathCodeCopyWith < $Res > ? get code ;
}
/// @nodoc
class _ $OathPairCopyWithImpl < $Res > implements $OathPairCopyWith < $Res > {
_ $OathPairCopyWithImpl ( this . _value , this . _then ) ;
final OathPair _value ;
// ignore: unused_field
final $Res Function ( OathPair ) _then ;
@ override
$Res call ( {
Object ? credential = freezed ,
Object ? code = freezed ,
} ) {
return _then ( _value . copyWith (
credential: credential = = freezed
? _value . credential
: credential // ignore: cast_nullable_to_non_nullable
as OathCredential ,
code: code = = freezed
? _value . code
: code // ignore: cast_nullable_to_non_nullable
as OathCode ? ,
) ) ;
}
@ override
$OathCredentialCopyWith < $Res > get credential {
return $OathCredentialCopyWith < $Res > ( _value . credential , ( value ) {
return _then ( _value . copyWith ( credential: value ) ) ;
} ) ;
}
@ override
$OathCodeCopyWith < $Res > ? get code {
if ( _value . code = = null ) {
return null ;
}
return $OathCodeCopyWith < $Res > ( _value . code ! , ( value ) {
return _then ( _value . copyWith ( code: value ) ) ;
} ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_OathPairCopyWith < $Res > implements $OathPairCopyWith < $Res > {
factory _ $ $_OathPairCopyWith (
_ $_OathPair value , $Res Function ( _ $_OathPair ) then ) =
__ $ $_OathPairCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( { OathCredential credential , OathCode ? code } ) ;
@ override
$OathCredentialCopyWith < $Res > get credential ;
@ override
$OathCodeCopyWith < $Res > ? get code ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_OathPairCopyWithImpl < $Res > extends _ $OathPairCopyWithImpl < $Res >
implements _ $ $_OathPairCopyWith < $Res > {
__ $ $_OathPairCopyWithImpl (
_ $_OathPair _value , $Res Function ( _ $_OathPair ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_OathPair ) ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_OathPair get _value = > super . _value as _ $_OathPair ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
Object ? credential = freezed ,
Object ? code = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_OathPair (
2021-11-19 17:05:57 +03:00
credential = = freezed
? _value . credential
: credential // ignore: cast_nullable_to_non_nullable
as OathCredential ,
code = = freezed
? _value . code
: code // ignore: cast_nullable_to_non_nullable
as OathCode ? ,
) ) ;
}
}
/// @nodoc
2022-05-06 15:27:33 +03:00
@ JsonSerializable ( )
2021-11-19 17:05:57 +03:00
class _ $_OathPair implements _OathPair {
_ $_OathPair ( this . credential , this . code ) ;
2022-05-06 15:27:33 +03:00
factory _ $_OathPair . fromJson ( Map < String , dynamic > json ) = >
_ $ $_OathPairFromJson ( json ) ;
2021-11-19 17:05:57 +03:00
@ override
final OathCredential credential ;
@ override
final OathCode ? code ;
@ override
String toString ( ) {
return ' OathPair(credential: $ credential , code: $ code ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_OathPair & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( )
. equals ( other . credential , credential ) & &
const DeepCollectionEquality ( ) . equals ( other . code , code ) ) ;
2021-11-19 17:05:57 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( credential ) ,
const DeepCollectionEquality ( ) . hash ( code ) ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_OathPairCopyWith < _ $_OathPair > get copyWith = >
__ $ $_OathPairCopyWithImpl < _ $_OathPair > ( this , _ $identity ) ;
2022-05-06 15:27:33 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_OathPairToJson (
this ,
) ;
2022-05-06 15:27:33 +03:00
}
2021-11-19 17:05:57 +03:00
}
abstract class _OathPair implements OathPair {
2022-05-12 12:06:28 +03:00
factory _OathPair ( final OathCredential credential , final OathCode ? code ) =
_ $_OathPair ;
2021-11-19 17:05:57 +03:00
2022-05-06 15:27:33 +03:00
factory _OathPair . fromJson ( Map < String , dynamic > json ) = _ $_OathPair . fromJson ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
OathCredential get credential ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
OathCode ? get code ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_OathPairCopyWith < _ $_OathPair > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
OathState _ $OathStateFromJson ( Map < String , dynamic > json ) {
return _OathState . fromJson ( json ) ;
}
/// @nodoc
mixin _ $OathState {
String get deviceId = > throw _privateConstructorUsedError ;
2022-05-25 19:24:45 +03:00
Version get version = > throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
bool get hasKey = > throw _privateConstructorUsedError ;
2022-02-08 14:25:36 +03:00
bool get remembered = > throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
bool get locked = > throw _privateConstructorUsedError ;
2022-02-22 17:22:41 +03:00
KeystoreState get keystore = > throw _privateConstructorUsedError ;
2021-11-19 17:05:57 +03:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$OathStateCopyWith < OathState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OathStateCopyWith < $Res > {
factory $OathStateCopyWith ( OathState value , $Res Function ( OathState ) then ) =
_ $OathStateCopyWithImpl < $Res > ;
2022-02-22 17:22:41 +03:00
$Res call (
{ String deviceId ,
2022-05-25 19:24:45 +03:00
Version version ,
2022-02-22 17:22:41 +03:00
bool hasKey ,
bool remembered ,
bool locked ,
KeystoreState keystore } ) ;
2022-05-25 19:24:45 +03:00
$VersionCopyWith < $Res > get version ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
class _ $OathStateCopyWithImpl < $Res > implements $OathStateCopyWith < $Res > {
_ $OathStateCopyWithImpl ( this . _value , this . _then ) ;
final OathState _value ;
// ignore: unused_field
final $Res Function ( OathState ) _then ;
@ override
$Res call ( {
Object ? deviceId = freezed ,
2022-05-25 19:24:45 +03:00
Object ? version = freezed ,
2021-11-19 17:05:57 +03:00
Object ? hasKey = freezed ,
2022-02-08 14:25:36 +03:00
Object ? remembered = freezed ,
2021-11-19 17:05:57 +03:00
Object ? locked = freezed ,
2022-02-22 17:22:41 +03:00
Object ? keystore = freezed ,
2021-11-19 17:05:57 +03:00
} ) {
return _then ( _value . copyWith (
deviceId: deviceId = = freezed
? _value . deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String ,
2022-05-25 19:24:45 +03:00
version: version = = freezed
? _value . version
: version // ignore: cast_nullable_to_non_nullable
as Version ,
2021-11-19 17:05:57 +03:00
hasKey: hasKey = = freezed
? _value . hasKey
: hasKey // ignore: cast_nullable_to_non_nullable
as bool ,
2022-02-08 14:25:36 +03:00
remembered: remembered = = freezed
? _value . remembered
: remembered // ignore: cast_nullable_to_non_nullable
as bool ,
2021-11-19 17:05:57 +03:00
locked: locked = = freezed
? _value . locked
: locked // ignore: cast_nullable_to_non_nullable
as bool ,
2022-02-22 17:22:41 +03:00
keystore: keystore = = freezed
? _value . keystore
: keystore // ignore: cast_nullable_to_non_nullable
as KeystoreState ,
2021-11-19 17:05:57 +03:00
) ) ;
}
2022-05-25 19:24:45 +03:00
@ override
$VersionCopyWith < $Res > get version {
return $VersionCopyWith < $Res > ( _value . version , ( value ) {
return _then ( _value . copyWith ( version: value ) ) ;
} ) ;
}
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_OathStateCopyWith < $Res > implements $OathStateCopyWith < $Res > {
factory _ $ $_OathStateCopyWith (
_ $_OathState value , $Res Function ( _ $_OathState ) then ) =
__ $ $_OathStateCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
2022-02-22 17:22:41 +03:00
$Res call (
{ String deviceId ,
2022-05-25 19:24:45 +03:00
Version version ,
2022-02-22 17:22:41 +03:00
bool hasKey ,
bool remembered ,
bool locked ,
KeystoreState keystore } ) ;
2022-05-25 19:24:45 +03:00
@ override
$VersionCopyWith < $Res > get version ;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_OathStateCopyWithImpl < $Res > extends _ $OathStateCopyWithImpl < $Res >
implements _ $ $_OathStateCopyWith < $Res > {
__ $ $_OathStateCopyWithImpl (
_ $_OathState _value , $Res Function ( _ $_OathState ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_OathState ) ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_OathState get _value = > super . _value as _ $_OathState ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
Object ? deviceId = freezed ,
2022-05-25 19:24:45 +03:00
Object ? version = freezed ,
2021-11-19 17:05:57 +03:00
Object ? hasKey = freezed ,
2022-02-08 14:25:36 +03:00
Object ? remembered = freezed ,
2021-11-19 17:05:57 +03:00
Object ? locked = freezed ,
2022-02-22 17:22:41 +03:00
Object ? keystore = freezed ,
2021-11-19 17:05:57 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_OathState (
2021-11-19 17:05:57 +03:00
deviceId = = freezed
? _value . deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String ,
2022-05-25 19:24:45 +03:00
version = = freezed
? _value . version
: version // ignore: cast_nullable_to_non_nullable
as Version ,
2022-02-08 14:25:36 +03:00
hasKey: hasKey = = freezed
2021-11-19 17:05:57 +03:00
? _value . hasKey
: hasKey // ignore: cast_nullable_to_non_nullable
as bool ,
2022-02-08 14:25:36 +03:00
remembered: remembered = = freezed
? _value . remembered
: remembered // ignore: cast_nullable_to_non_nullable
as bool ,
locked: locked = = freezed
2021-11-19 17:05:57 +03:00
? _value . locked
: locked // ignore: cast_nullable_to_non_nullable
as bool ,
2022-02-22 17:22:41 +03:00
keystore: keystore = = freezed
? _value . keystore
: keystore // ignore: cast_nullable_to_non_nullable
as KeystoreState ,
2021-11-19 17:05:57 +03:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_OathState implements _OathState {
2022-05-25 19:24:45 +03:00
_ $_OathState ( this . deviceId , this . version ,
2022-02-22 17:22:41 +03:00
{ required this . hasKey ,
required this . remembered ,
required this . locked ,
required this . keystore } ) ;
2021-11-19 17:05:57 +03:00
factory _ $_OathState . fromJson ( Map < String , dynamic > json ) = >
_ $ $_OathStateFromJson ( json ) ;
@ override
final String deviceId ;
@ override
2022-05-25 19:24:45 +03:00
final Version version ;
@ override
2021-11-19 17:05:57 +03:00
final bool hasKey ;
@ override
2022-02-08 14:25:36 +03:00
final bool remembered ;
@ override
2021-11-19 17:05:57 +03:00
final bool locked ;
2022-02-22 17:22:41 +03:00
@ override
final KeystoreState keystore ;
2021-11-19 17:05:57 +03:00
@ override
String toString ( ) {
2022-05-25 19:24:45 +03:00
return ' OathState(deviceId: $ deviceId , version: $ version , hasKey: $ hasKey , remembered: $ remembered , locked: $ locked , keystore: $ keystore ) ' ;
2021-11-19 17:05:57 +03:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_OathState & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . deviceId , deviceId ) & &
2022-05-25 19:24:45 +03:00
const DeepCollectionEquality ( ) . equals ( other . version , version ) & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . hasKey , hasKey ) & &
2022-02-08 14:25:36 +03:00
const DeepCollectionEquality ( )
. equals ( other . remembered , remembered ) & &
2022-02-22 17:22:41 +03:00
const DeepCollectionEquality ( ) . equals ( other . locked , locked ) & &
const DeepCollectionEquality ( ) . equals ( other . keystore , keystore ) ) ;
2021-11-19 17:05:57 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( deviceId ) ,
2022-05-25 19:24:45 +03:00
const DeepCollectionEquality ( ) . hash ( version ) ,
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . hash ( hasKey ) ,
2022-02-08 14:25:36 +03:00
const DeepCollectionEquality ( ) . hash ( remembered ) ,
2022-02-22 17:22:41 +03:00
const DeepCollectionEquality ( ) . hash ( locked ) ,
const DeepCollectionEquality ( ) . hash ( keystore ) ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_OathStateCopyWith < _ $_OathState > get copyWith = >
__ $ $_OathStateCopyWithImpl < _ $_OathState > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_OathStateToJson (
this ,
) ;
2021-11-19 17:05:57 +03:00
}
}
abstract class _OathState implements OathState {
2022-05-25 19:24:45 +03:00
factory _OathState ( final String deviceId , final Version version ,
2022-05-12 12:06:28 +03:00
{ required final bool hasKey ,
required final bool remembered ,
required final bool locked ,
required final KeystoreState keystore } ) = _ $_OathState ;
2021-11-19 17:05:57 +03:00
factory _OathState . fromJson ( Map < String , dynamic > json ) =
_ $_OathState . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
String get deviceId ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
Version get version ;
2022-05-25 19:24:45 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get hasKey ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get remembered ;
2022-02-08 14:25:36 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get locked ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
KeystoreState get keystore ;
2022-02-22 17:22:41 +03:00
@ override
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_OathStateCopyWith < _ $_OathState > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
CredentialData _ $CredentialDataFromJson ( Map < String , dynamic > json ) {
return _CredentialData . fromJson ( json ) ;
}
/// @nodoc
mixin _ $CredentialData {
String ? get issuer = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
String get secret = > throw _privateConstructorUsedError ;
OathType get oathType = > throw _privateConstructorUsedError ;
HashAlgorithm get hashAlgorithm = > throw _privateConstructorUsedError ;
int get digits = > throw _privateConstructorUsedError ;
int get period = > throw _privateConstructorUsedError ;
int get counter = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$CredentialDataCopyWith < CredentialData > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $CredentialDataCopyWith < $Res > {
factory $CredentialDataCopyWith (
CredentialData value , $Res Function ( CredentialData ) then ) =
_ $CredentialDataCopyWithImpl < $Res > ;
$Res call (
{ String ? issuer ,
String name ,
String secret ,
OathType oathType ,
HashAlgorithm hashAlgorithm ,
int digits ,
int period ,
int counter } ) ;
}
/// @nodoc
class _ $CredentialDataCopyWithImpl < $Res >
implements $CredentialDataCopyWith < $Res > {
_ $CredentialDataCopyWithImpl ( this . _value , this . _then ) ;
final CredentialData _value ;
// ignore: unused_field
final $Res Function ( CredentialData ) _then ;
@ override
$Res call ( {
Object ? issuer = freezed ,
Object ? name = freezed ,
Object ? secret = freezed ,
Object ? oathType = freezed ,
Object ? hashAlgorithm = freezed ,
Object ? digits = freezed ,
Object ? period = freezed ,
Object ? counter = freezed ,
} ) {
return _then ( _value . copyWith (
issuer: issuer = = freezed
? _value . issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String ? ,
name: name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
secret: secret = = freezed
? _value . secret
: secret // ignore: cast_nullable_to_non_nullable
as String ,
oathType: oathType = = freezed
? _value . oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType ,
hashAlgorithm: hashAlgorithm = = freezed
? _value . hashAlgorithm
: hashAlgorithm // ignore: cast_nullable_to_non_nullable
as HashAlgorithm ,
digits: digits = = freezed
? _value . digits
: digits // ignore: cast_nullable_to_non_nullable
as int ,
period: period = = freezed
? _value . period
: period // ignore: cast_nullable_to_non_nullable
as int ,
counter: counter = = freezed
? _value . counter
: counter // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_CredentialDataCopyWith < $Res >
2021-11-19 17:05:57 +03:00
implements $CredentialDataCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_CredentialDataCopyWith (
_ $_CredentialData value , $Res Function ( _ $_CredentialData ) then ) =
__ $ $_CredentialDataCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
$Res call (
{ String ? issuer ,
String name ,
String secret ,
OathType oathType ,
HashAlgorithm hashAlgorithm ,
int digits ,
int period ,
int counter } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_CredentialDataCopyWithImpl < $Res >
2021-11-19 17:05:57 +03:00
extends _ $CredentialDataCopyWithImpl < $Res >
2022-05-12 12:06:28 +03:00
implements _ $ $_CredentialDataCopyWith < $Res > {
__ $ $_CredentialDataCopyWithImpl (
_ $_CredentialData _value , $Res Function ( _ $_CredentialData ) _then )
: super ( _value , ( v ) = > _then ( v as _ $_CredentialData ) ) ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
_ $_CredentialData get _value = > super . _value as _ $_CredentialData ;
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
Object ? issuer = freezed ,
Object ? name = freezed ,
Object ? secret = freezed ,
Object ? oathType = freezed ,
Object ? hashAlgorithm = freezed ,
Object ? digits = freezed ,
Object ? period = freezed ,
Object ? counter = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_CredentialData (
2021-11-19 17:05:57 +03:00
issuer: issuer = = freezed
? _value . issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String ? ,
name: name = = freezed
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
secret: secret = = freezed
? _value . secret
: secret // ignore: cast_nullable_to_non_nullable
as String ,
oathType: oathType = = freezed
? _value . oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType ,
hashAlgorithm: hashAlgorithm = = freezed
? _value . hashAlgorithm
: hashAlgorithm // ignore: cast_nullable_to_non_nullable
as HashAlgorithm ,
digits: digits = = freezed
? _value . digits
: digits // ignore: cast_nullable_to_non_nullable
as int ,
period: period = = freezed
? _value . period
: period // ignore: cast_nullable_to_non_nullable
as int ,
counter: counter = = freezed
? _value . counter
: counter // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_CredentialData extends _CredentialData {
_ $_CredentialData (
{ this . issuer ,
required this . name ,
required this . secret ,
2022-01-31 13:02:34 +03:00
this . oathType = defaultOathType ,
this . hashAlgorithm = defaultHashAlgorithm ,
this . digits = defaultDigits ,
this . period = defaultPeriod ,
this . counter = defaultCounter } )
2021-11-19 17:05:57 +03:00
: super . _ ( ) ;
factory _ $_CredentialData . fromJson ( Map < String , dynamic > json ) = >
_ $ $_CredentialDataFromJson ( json ) ;
@ override
final String ? issuer ;
@ override
final String name ;
@ override
final String secret ;
@ override
2022-01-12 14:49:04 +03:00
@ JsonKey ( )
2022-05-12 12:06:28 +03:00
final OathType oathType ;
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
@ JsonKey ( )
2022-05-12 12:06:28 +03:00
final HashAlgorithm hashAlgorithm ;
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
@ JsonKey ( )
2022-05-12 12:06:28 +03:00
final int digits ;
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
@ JsonKey ( )
2022-05-12 12:06:28 +03:00
final int period ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
@ JsonKey ( )
2021-11-19 17:05:57 +03:00
final int counter ;
@ override
String toString ( ) {
return ' CredentialData(issuer: $ issuer , name: $ name , secret: $ secret , oathType: $ oathType , hashAlgorithm: $ hashAlgorithm , digits: $ digits , period: $ period , counter: $ counter ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_CredentialData & &
2022-01-12 14:49:04 +03:00
const DeepCollectionEquality ( ) . equals ( other . issuer , issuer ) & &
const DeepCollectionEquality ( ) . equals ( other . name , name ) & &
const DeepCollectionEquality ( ) . equals ( other . secret , secret ) & &
const DeepCollectionEquality ( ) . equals ( other . oathType , oathType ) & &
const DeepCollectionEquality ( )
. equals ( other . hashAlgorithm , hashAlgorithm ) & &
const DeepCollectionEquality ( ) . equals ( other . digits , digits ) & &
const DeepCollectionEquality ( ) . equals ( other . period , period ) & &
const DeepCollectionEquality ( ) . equals ( other . counter , counter ) ) ;
2021-11-19 17:05:57 +03:00
}
2022-05-12 12:06:28 +03:00
@ JsonKey ( ignore: true )
2021-11-19 17:05:57 +03:00
@ override
2022-01-12 14:49:04 +03:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( issuer ) ,
const DeepCollectionEquality ( ) . hash ( name ) ,
const DeepCollectionEquality ( ) . hash ( secret ) ,
const DeepCollectionEquality ( ) . hash ( oathType ) ,
const DeepCollectionEquality ( ) . hash ( hashAlgorithm ) ,
const DeepCollectionEquality ( ) . hash ( digits ) ,
const DeepCollectionEquality ( ) . hash ( period ) ,
const DeepCollectionEquality ( ) . hash ( counter ) ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-05-12 12:06:28 +03:00
_ $ $_CredentialDataCopyWith < _ $_CredentialData > get copyWith = >
__ $ $_CredentialDataCopyWithImpl < _ $_CredentialData > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_CredentialDataToJson (
this ,
) ;
2021-11-19 17:05:57 +03:00
}
}
abstract class _CredentialData extends CredentialData {
factory _CredentialData (
2022-05-12 12:06:28 +03:00
{ final String ? issuer ,
required final String name ,
required final String secret ,
final OathType oathType ,
final HashAlgorithm hashAlgorithm ,
final int digits ,
final int period ,
final int counter } ) = _ $_CredentialData ;
2021-11-19 17:05:57 +03:00
_CredentialData . _ ( ) : super . _ ( ) ;
factory _CredentialData . fromJson ( Map < String , dynamic > json ) =
_ $_CredentialData . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
String ? get issuer ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get name ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
String get secret ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
OathType get oathType ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
HashAlgorithm get hashAlgorithm ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get digits ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get period ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get counter ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_CredentialDataCopyWith < _ $_CredentialData > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}