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
2022-12-05 17:26:54 +03:00
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
2021-11-19 17:05:57 +03:00
part of ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2022-05-12 12:06:28 +03:00
' It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods ' ) ;
2021-11-19 17:05:57 +03:00
DeviceConfig _ $DeviceConfigFromJson ( Map < String , dynamic > json ) {
return _DeviceConfig . fromJson ( json ) ;
}
/// @nodoc
mixin _ $DeviceConfig {
Map < Transport , int > get enabledCapabilities = >
throw _privateConstructorUsedError ;
int ? get autoEjectTimeout = > throw _privateConstructorUsedError ;
int ? get challengeResponseTimeout = > throw _privateConstructorUsedError ;
int ? get deviceFlags = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$DeviceConfigCopyWith < DeviceConfig > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DeviceConfigCopyWith < $Res > {
factory $DeviceConfigCopyWith (
DeviceConfig value , $Res Function ( DeviceConfig ) then ) =
2022-10-19 12:15:48 +03:00
_ $DeviceConfigCopyWithImpl < $Res , DeviceConfig > ;
@ useResult
2021-11-19 17:05:57 +03:00
$Res call (
{ Map < Transport , int > enabledCapabilities ,
int ? autoEjectTimeout ,
int ? challengeResponseTimeout ,
int ? deviceFlags } ) ;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $DeviceConfigCopyWithImpl < $Res , $Val extends DeviceConfig >
implements $DeviceConfigCopyWith < $Res > {
2021-11-19 17:05:57 +03:00
_ $DeviceConfigCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2021-11-19 17:05:57 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? enabledCapabilities = null ,
2021-11-19 17:05:57 +03:00
Object ? autoEjectTimeout = freezed ,
Object ? challengeResponseTimeout = freezed ,
Object ? deviceFlags = freezed ,
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
enabledCapabilities: null = = enabledCapabilities
2021-11-19 17:05:57 +03:00
? _value . enabledCapabilities
: enabledCapabilities // ignore: cast_nullable_to_non_nullable
as Map < Transport , int > ,
2022-10-19 12:15:48 +03:00
autoEjectTimeout: freezed = = autoEjectTimeout
2021-11-19 17:05:57 +03:00
? _value . autoEjectTimeout
: autoEjectTimeout // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
challengeResponseTimeout: freezed = = challengeResponseTimeout
2021-11-19 17:05:57 +03:00
? _value . challengeResponseTimeout
: challengeResponseTimeout // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
deviceFlags: freezed = = deviceFlags
2021-11-19 17:05:57 +03:00
? _value . deviceFlags
: deviceFlags // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2021-11-19 17:05:57 +03:00
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_DeviceConfigCopyWith < $Res >
2021-11-19 17:05:57 +03:00
implements $DeviceConfigCopyWith < $Res > {
2022-05-12 12:06:28 +03:00
factory _ $ $_DeviceConfigCopyWith (
_ $_DeviceConfig value , $Res Function ( _ $_DeviceConfig ) then ) =
__ $ $_DeviceConfigCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2021-11-19 17:05:57 +03:00
$Res call (
{ Map < Transport , int > enabledCapabilities ,
int ? autoEjectTimeout ,
int ? challengeResponseTimeout ,
int ? deviceFlags } ) ;
}
/// @nodoc
2022-05-12 12:06:28 +03:00
class __ $ $_DeviceConfigCopyWithImpl < $Res >
2022-10-19 12:15:48 +03:00
extends _ $DeviceConfigCopyWithImpl < $Res , _ $_DeviceConfig >
2022-05-12 12:06:28 +03:00
implements _ $ $_DeviceConfigCopyWith < $Res > {
__ $ $_DeviceConfigCopyWithImpl (
_ $_DeviceConfig _value , $Res Function ( _ $_DeviceConfig ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2021-11-19 17:05:57 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? enabledCapabilities = null ,
2021-11-19 17:05:57 +03:00
Object ? autoEjectTimeout = freezed ,
Object ? challengeResponseTimeout = freezed ,
Object ? deviceFlags = freezed ,
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_DeviceConfig (
2022-10-19 12:15:48 +03:00
null = = enabledCapabilities
2022-05-12 12:06:28 +03:00
? _value . _enabledCapabilities
2021-11-19 17:05:57 +03:00
: enabledCapabilities // ignore: cast_nullable_to_non_nullable
as Map < Transport , int > ,
2022-10-19 12:15:48 +03:00
freezed = = autoEjectTimeout
2021-11-19 17:05:57 +03:00
? _value . autoEjectTimeout
: autoEjectTimeout // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
freezed = = challengeResponseTimeout
2021-11-19 17:05:57 +03:00
? _value . challengeResponseTimeout
: challengeResponseTimeout // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
freezed = = deviceFlags
2021-11-19 17:05:57 +03:00
? _value . deviceFlags
: deviceFlags // ignore: cast_nullable_to_non_nullable
as int ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_DeviceConfig implements _DeviceConfig {
2022-05-12 12:06:28 +03:00
_ $_DeviceConfig ( final Map < Transport , int > enabledCapabilities ,
this . autoEjectTimeout , this . challengeResponseTimeout , this . deviceFlags )
: _enabledCapabilities = enabledCapabilities ;
2021-11-19 17:05:57 +03:00
factory _ $_DeviceConfig . fromJson ( Map < String , dynamic > json ) = >
_ $ $_DeviceConfigFromJson ( json ) ;
2022-05-12 12:06:28 +03:00
final Map < Transport , int > _enabledCapabilities ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
Map < Transport , int > get enabledCapabilities {
2022-12-05 17:26:54 +03:00
if ( _enabledCapabilities is EqualUnmodifiableMapView )
return _enabledCapabilities ;
2022-05-12 12:06:28 +03:00
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _enabledCapabilities ) ;
}
2021-11-19 17:05:57 +03:00
@ override
final int ? autoEjectTimeout ;
@ override
final int ? challengeResponseTimeout ;
@ override
final int ? deviceFlags ;
@ override
String toString ( ) {
return ' DeviceConfig(enabledCapabilities: $ enabledCapabilities , autoEjectTimeout: $ autoEjectTimeout , challengeResponseTimeout: $ challengeResponseTimeout , deviceFlags: $ deviceFlags ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_DeviceConfig & &
2021-11-19 17:05:57 +03:00
const DeepCollectionEquality ( )
2022-05-12 12:06:28 +03:00
. equals ( other . _enabledCapabilities , _enabledCapabilities ) & &
2022-10-19 12:15:48 +03:00
( identical ( other . autoEjectTimeout , autoEjectTimeout ) | |
other . autoEjectTimeout = = autoEjectTimeout ) & &
( identical (
other . challengeResponseTimeout , challengeResponseTimeout ) | |
other . challengeResponseTimeout = = challengeResponseTimeout ) & &
( identical ( other . deviceFlags , deviceFlags ) | |
other . deviceFlags = = deviceFlags ) ) ;
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 (
runtimeType ,
2022-05-12 12:06:28 +03:00
const DeepCollectionEquality ( ) . hash ( _enabledCapabilities ) ,
2022-10-19 12:15:48 +03:00
autoEjectTimeout ,
challengeResponseTimeout ,
deviceFlags ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_DeviceConfigCopyWith < _ $_DeviceConfig > get copyWith = >
__ $ $_DeviceConfigCopyWithImpl < _ $_DeviceConfig > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_DeviceConfigToJson (
this ,
) ;
2021-11-19 17:05:57 +03:00
}
}
abstract class _DeviceConfig implements DeviceConfig {
factory _DeviceConfig (
2022-05-12 12:06:28 +03:00
final Map < Transport , int > enabledCapabilities ,
final int ? autoEjectTimeout ,
final int ? challengeResponseTimeout ,
final int ? deviceFlags ) = _ $_DeviceConfig ;
2021-11-19 17:05:57 +03:00
factory _DeviceConfig . fromJson ( Map < String , dynamic > json ) =
_ $_DeviceConfig . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
Map < Transport , int > get enabledCapabilities ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int ? get autoEjectTimeout ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int ? get challengeResponseTimeout ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int ? get deviceFlags ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_DeviceConfigCopyWith < _ $_DeviceConfig > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}
DeviceInfo _ $DeviceInfoFromJson ( Map < String , dynamic > json ) {
return _DeviceInfo . fromJson ( json ) ;
}
/// @nodoc
mixin _ $DeviceInfo {
DeviceConfig get config = > throw _privateConstructorUsedError ;
int ? get serial = > throw _privateConstructorUsedError ;
Version get version = > throw _privateConstructorUsedError ;
FormFactor get formFactor = > throw _privateConstructorUsedError ;
Map < Transport , int > get supportedCapabilities = >
throw _privateConstructorUsedError ;
bool get isLocked = > throw _privateConstructorUsedError ;
bool get isFips = > throw _privateConstructorUsedError ;
bool get isSky = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$DeviceInfoCopyWith < DeviceInfo > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DeviceInfoCopyWith < $Res > {
factory $DeviceInfoCopyWith (
DeviceInfo value , $Res Function ( DeviceInfo ) then ) =
2022-10-19 12:15:48 +03:00
_ $DeviceInfoCopyWithImpl < $Res , DeviceInfo > ;
@ useResult
2021-11-19 17:05:57 +03:00
$Res call (
{ DeviceConfig config ,
int ? serial ,
Version version ,
FormFactor formFactor ,
Map < Transport , int > supportedCapabilities ,
bool isLocked ,
bool isFips ,
bool isSky } ) ;
$DeviceConfigCopyWith < $Res > get config ;
$VersionCopyWith < $Res > get version ;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $DeviceInfoCopyWithImpl < $Res , $Val extends DeviceInfo >
implements $DeviceInfoCopyWith < $Res > {
2021-11-19 17:05:57 +03:00
_ $DeviceInfoCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2021-11-19 17:05:57 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? config = null ,
2021-11-19 17:05:57 +03:00
Object ? serial = freezed ,
2022-10-19 12:15:48 +03:00
Object ? version = null ,
Object ? formFactor = null ,
Object ? supportedCapabilities = null ,
Object ? isLocked = null ,
Object ? isFips = null ,
Object ? isSky = null ,
2021-11-19 17:05:57 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
config: null = = config
2021-11-19 17:05:57 +03:00
? _value . config
: config // ignore: cast_nullable_to_non_nullable
as DeviceConfig ,
2022-10-19 12:15:48 +03:00
serial: freezed = = serial
2021-11-19 17:05:57 +03:00
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
version: null = = version
2021-11-19 17:05:57 +03:00
? _value . version
: version // ignore: cast_nullable_to_non_nullable
as Version ,
2022-10-19 12:15:48 +03:00
formFactor: null = = formFactor
2021-11-19 17:05:57 +03:00
? _value . formFactor
: formFactor // ignore: cast_nullable_to_non_nullable
as FormFactor ,
2022-10-19 12:15:48 +03:00
supportedCapabilities: null = = supportedCapabilities
2021-11-19 17:05:57 +03:00
? _value . supportedCapabilities
: supportedCapabilities // ignore: cast_nullable_to_non_nullable
as Map < Transport , int > ,
2022-10-19 12:15:48 +03:00
isLocked: null = = isLocked
2021-11-19 17:05:57 +03:00
? _value . isLocked
: isLocked // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
isFips: null = = isFips
2021-11-19 17:05:57 +03:00
? _value . isFips
: isFips // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
isSky: null = = isSky
2021-11-19 17:05:57 +03:00
? _value . isSky
: isSky // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2021-11-19 17:05:57 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
$DeviceConfigCopyWith < $Res > get config {
return $DeviceConfigCopyWith < $Res > ( _value . config , ( value ) {
2022-10-19 12:15:48 +03:00
return _then ( _value . copyWith ( config: value ) as $Val ) ;
2021-11-19 17:05:57 +03:00
} ) ;
}
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
$VersionCopyWith < $Res > get version {
return $VersionCopyWith < $Res > ( _value . version , ( value ) {
2022-10-19 12:15:48 +03:00
return _then ( _value . copyWith ( version: value ) as $Val ) ;
2021-11-19 17:05:57 +03:00
} ) ;
}
}
/// @nodoc
2022-05-12 12:06:28 +03:00
abstract class _ $ $_DeviceInfoCopyWith < $Res >
implements $DeviceInfoCopyWith < $Res > {
factory _ $ $_DeviceInfoCopyWith (
_ $_DeviceInfo value , $Res Function ( _ $_DeviceInfo ) then ) =
__ $ $_DeviceInfoCopyWithImpl < $Res > ;
2021-11-19 17:05:57 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2021-11-19 17:05:57 +03:00
$Res call (
{ DeviceConfig config ,
int ? serial ,
Version version ,
FormFactor formFactor ,
Map < Transport , int > supportedCapabilities ,
bool isLocked ,
bool isFips ,
bool isSky } ) ;
@ override
$DeviceConfigCopyWith < $Res > get config ;
@ override
$VersionCopyWith < $Res > get version ;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class __ $ $_DeviceInfoCopyWithImpl < $Res >
extends _ $DeviceInfoCopyWithImpl < $Res , _ $_DeviceInfo >
2022-05-12 12:06:28 +03:00
implements _ $ $_DeviceInfoCopyWith < $Res > {
__ $ $_DeviceInfoCopyWithImpl (
_ $_DeviceInfo _value , $Res Function ( _ $_DeviceInfo ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2021-11-19 17:05:57 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 17:05:57 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? config = null ,
2021-11-19 17:05:57 +03:00
Object ? serial = freezed ,
2022-10-19 12:15:48 +03:00
Object ? version = null ,
Object ? formFactor = null ,
Object ? supportedCapabilities = null ,
Object ? isLocked = null ,
Object ? isFips = null ,
Object ? isSky = null ,
2021-11-19 17:05:57 +03:00
} ) {
2022-05-12 12:06:28 +03:00
return _then ( _ $_DeviceInfo (
2022-10-19 12:15:48 +03:00
null = = config
2021-11-19 17:05:57 +03:00
? _value . config
: config // ignore: cast_nullable_to_non_nullable
as DeviceConfig ,
2022-10-19 12:15:48 +03:00
freezed = = serial
2021-11-19 17:05:57 +03:00
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
as int ? ,
2022-10-19 12:15:48 +03:00
null = = version
2021-11-19 17:05:57 +03:00
? _value . version
: version // ignore: cast_nullable_to_non_nullable
as Version ,
2022-10-19 12:15:48 +03:00
null = = formFactor
2021-11-19 17:05:57 +03:00
? _value . formFactor
: formFactor // ignore: cast_nullable_to_non_nullable
as FormFactor ,
2022-10-19 12:15:48 +03:00
null = = supportedCapabilities
2022-05-12 12:06:28 +03:00
? _value . _supportedCapabilities
2021-11-19 17:05:57 +03:00
: supportedCapabilities // ignore: cast_nullable_to_non_nullable
as Map < Transport , int > ,
2022-10-19 12:15:48 +03:00
null = = isLocked
2021-11-19 17:05:57 +03:00
? _value . isLocked
: isLocked // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
null = = isFips
2021-11-19 17:05:57 +03:00
? _value . isFips
: isFips // ignore: cast_nullable_to_non_nullable
as bool ,
2022-10-19 12:15:48 +03:00
null = = isSky
2021-11-19 17:05:57 +03:00
? _value . isSky
: isSky // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_DeviceInfo implements _DeviceInfo {
2022-05-12 12:06:28 +03:00
_ $_DeviceInfo (
this . config ,
this . serial ,
this . version ,
this . formFactor ,
final Map < Transport , int > supportedCapabilities ,
this . isLocked ,
this . isFips ,
this . isSky )
: _supportedCapabilities = supportedCapabilities ;
2021-11-19 17:05:57 +03:00
factory _ $_DeviceInfo . fromJson ( Map < String , dynamic > json ) = >
_ $ $_DeviceInfoFromJson ( json ) ;
@ override
final DeviceConfig config ;
@ override
final int ? serial ;
@ override
final Version version ;
@ override
final FormFactor formFactor ;
2022-05-12 12:06:28 +03:00
final Map < Transport , int > _supportedCapabilities ;
2021-11-19 17:05:57 +03:00
@ override
2022-05-12 12:06:28 +03:00
Map < Transport , int > get supportedCapabilities {
2022-12-05 17:26:54 +03:00
if ( _supportedCapabilities is EqualUnmodifiableMapView )
return _supportedCapabilities ;
2022-05-12 12:06:28 +03:00
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _supportedCapabilities ) ;
}
2021-11-19 17:05:57 +03:00
@ override
final bool isLocked ;
@ override
final bool isFips ;
@ override
final bool isSky ;
@ override
String toString ( ) {
return ' DeviceInfo(config: $ config , serial: $ serial , version: $ version , formFactor: $ formFactor , supportedCapabilities: $ supportedCapabilities , isLocked: $ isLocked , isFips: $ isFips , isSky: $ isSky ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2022-05-12 12:06:28 +03:00
other is _ $_DeviceInfo & &
2022-10-19 12:15:48 +03:00
( identical ( other . config , config ) | | other . config = = config ) & &
( identical ( other . serial , serial ) | | other . serial = = serial ) & &
( identical ( other . version , version ) | | other . version = = version ) & &
( identical ( other . formFactor , formFactor ) | |
other . formFactor = = formFactor ) & &
2021-11-19 17:05:57 +03:00
const DeepCollectionEquality ( )
2022-05-12 12:06:28 +03:00
. equals ( other . _supportedCapabilities , _supportedCapabilities ) & &
2022-10-19 12:15:48 +03:00
( identical ( other . isLocked , isLocked ) | |
other . isLocked = = isLocked ) & &
( identical ( other . isFips , isFips ) | | other . isFips = = isFips ) & &
( identical ( other . isSky , isSky ) | | other . isSky = = isSky ) ) ;
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 (
runtimeType ,
2022-10-19 12:15:48 +03:00
config ,
serial ,
version ,
formFactor ,
2022-05-12 12:06:28 +03:00
const DeepCollectionEquality ( ) . hash ( _supportedCapabilities ) ,
2022-10-19 12:15:48 +03:00
isLocked ,
isFips ,
isSky ) ;
2021-11-19 17:05:57 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2022-05-12 12:06:28 +03:00
_ $ $_DeviceInfoCopyWith < _ $_DeviceInfo > get copyWith = >
__ $ $_DeviceInfoCopyWithImpl < _ $_DeviceInfo > ( this , _ $identity ) ;
2021-11-19 17:05:57 +03:00
@ override
Map < String , dynamic > toJson ( ) {
2022-07-21 17:38:45 +03:00
return _ $ $_DeviceInfoToJson (
this ,
) ;
2021-11-19 17:05:57 +03:00
}
}
abstract class _DeviceInfo implements DeviceInfo {
factory _DeviceInfo (
2022-05-12 12:06:28 +03:00
final DeviceConfig config ,
final int ? serial ,
final Version version ,
final FormFactor formFactor ,
final Map < Transport , int > supportedCapabilities ,
final bool isLocked ,
final bool isFips ,
final bool isSky ) = _ $_DeviceInfo ;
2021-11-19 17:05:57 +03:00
factory _DeviceInfo . fromJson ( Map < String , dynamic > json ) =
_ $_DeviceInfo . fromJson ;
@ override
2022-07-07 11:29:42 +03:00
DeviceConfig get config ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
int ? get serial ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
Version get version ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
FormFactor get formFactor ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
Map < Transport , int > get supportedCapabilities ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get isLocked ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get isFips ;
2021-11-19 17:05:57 +03:00
@ override
2022-07-07 11:29:42 +03:00
bool get isSky ;
2021-11-19 17:05:57 +03:00
@ override
@ JsonKey ( ignore: true )
2022-05-12 12:06:28 +03:00
_ $ $_DeviceInfoCopyWith < _ $_DeviceInfo > get copyWith = >
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError ;
}