mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 00:12:09 +03:00
677 lines
22 KiB
Dart
677 lines
22 KiB
Dart
// 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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
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;
|
|
|
|
/// Serializes this DeviceConfig to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DeviceConfig
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DeviceConfigCopyWith<DeviceConfig> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DeviceConfigCopyWith<$Res> {
|
|
factory $DeviceConfigCopyWith(
|
|
DeviceConfig value, $Res Function(DeviceConfig) then) =
|
|
_$DeviceConfigCopyWithImpl<$Res, DeviceConfig>;
|
|
@useResult
|
|
$Res call(
|
|
{Map<Transport, int> enabledCapabilities,
|
|
int? autoEjectTimeout,
|
|
int? challengeResponseTimeout,
|
|
int? deviceFlags});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DeviceConfigCopyWithImpl<$Res, $Val extends DeviceConfig>
|
|
implements $DeviceConfigCopyWith<$Res> {
|
|
_$DeviceConfigCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DeviceConfig
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? enabledCapabilities = null,
|
|
Object? autoEjectTimeout = freezed,
|
|
Object? challengeResponseTimeout = freezed,
|
|
Object? deviceFlags = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
enabledCapabilities: null == enabledCapabilities
|
|
? _value.enabledCapabilities
|
|
: enabledCapabilities // ignore: cast_nullable_to_non_nullable
|
|
as Map<Transport, int>,
|
|
autoEjectTimeout: freezed == autoEjectTimeout
|
|
? _value.autoEjectTimeout
|
|
: autoEjectTimeout // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
challengeResponseTimeout: freezed == challengeResponseTimeout
|
|
? _value.challengeResponseTimeout
|
|
: challengeResponseTimeout // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
deviceFlags: freezed == deviceFlags
|
|
? _value.deviceFlags
|
|
: deviceFlags // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DeviceConfigImplCopyWith<$Res>
|
|
implements $DeviceConfigCopyWith<$Res> {
|
|
factory _$$DeviceConfigImplCopyWith(
|
|
_$DeviceConfigImpl value, $Res Function(_$DeviceConfigImpl) then) =
|
|
__$$DeviceConfigImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{Map<Transport, int> enabledCapabilities,
|
|
int? autoEjectTimeout,
|
|
int? challengeResponseTimeout,
|
|
int? deviceFlags});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DeviceConfigImplCopyWithImpl<$Res>
|
|
extends _$DeviceConfigCopyWithImpl<$Res, _$DeviceConfigImpl>
|
|
implements _$$DeviceConfigImplCopyWith<$Res> {
|
|
__$$DeviceConfigImplCopyWithImpl(
|
|
_$DeviceConfigImpl _value, $Res Function(_$DeviceConfigImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of DeviceConfig
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? enabledCapabilities = null,
|
|
Object? autoEjectTimeout = freezed,
|
|
Object? challengeResponseTimeout = freezed,
|
|
Object? deviceFlags = freezed,
|
|
}) {
|
|
return _then(_$DeviceConfigImpl(
|
|
null == enabledCapabilities
|
|
? _value._enabledCapabilities
|
|
: enabledCapabilities // ignore: cast_nullable_to_non_nullable
|
|
as Map<Transport, int>,
|
|
freezed == autoEjectTimeout
|
|
? _value.autoEjectTimeout
|
|
: autoEjectTimeout // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
freezed == challengeResponseTimeout
|
|
? _value.challengeResponseTimeout
|
|
: challengeResponseTimeout // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
freezed == deviceFlags
|
|
? _value.deviceFlags
|
|
: deviceFlags // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DeviceConfigImpl implements _DeviceConfig {
|
|
_$DeviceConfigImpl(final Map<Transport, int> enabledCapabilities,
|
|
this.autoEjectTimeout, this.challengeResponseTimeout, this.deviceFlags)
|
|
: _enabledCapabilities = enabledCapabilities;
|
|
|
|
factory _$DeviceConfigImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DeviceConfigImplFromJson(json);
|
|
|
|
final Map<Transport, int> _enabledCapabilities;
|
|
@override
|
|
Map<Transport, int> get enabledCapabilities {
|
|
if (_enabledCapabilities is EqualUnmodifiableMapView)
|
|
return _enabledCapabilities;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_enabledCapabilities);
|
|
}
|
|
|
|
@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 ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DeviceConfigImpl &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._enabledCapabilities, _enabledCapabilities) &&
|
|
(identical(other.autoEjectTimeout, autoEjectTimeout) ||
|
|
other.autoEjectTimeout == autoEjectTimeout) &&
|
|
(identical(
|
|
other.challengeResponseTimeout, challengeResponseTimeout) ||
|
|
other.challengeResponseTimeout == challengeResponseTimeout) &&
|
|
(identical(other.deviceFlags, deviceFlags) ||
|
|
other.deviceFlags == deviceFlags));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(_enabledCapabilities),
|
|
autoEjectTimeout,
|
|
challengeResponseTimeout,
|
|
deviceFlags);
|
|
|
|
/// Create a copy of DeviceConfig
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DeviceConfigImplCopyWith<_$DeviceConfigImpl> get copyWith =>
|
|
__$$DeviceConfigImplCopyWithImpl<_$DeviceConfigImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DeviceConfigImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _DeviceConfig implements DeviceConfig {
|
|
factory _DeviceConfig(
|
|
final Map<Transport, int> enabledCapabilities,
|
|
final int? autoEjectTimeout,
|
|
final int? challengeResponseTimeout,
|
|
final int? deviceFlags) = _$DeviceConfigImpl;
|
|
|
|
factory _DeviceConfig.fromJson(Map<String, dynamic> json) =
|
|
_$DeviceConfigImpl.fromJson;
|
|
|
|
@override
|
|
Map<Transport, int> get enabledCapabilities;
|
|
@override
|
|
int? get autoEjectTimeout;
|
|
@override
|
|
int? get challengeResponseTimeout;
|
|
@override
|
|
int? get deviceFlags;
|
|
|
|
/// Create a copy of DeviceConfig
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DeviceConfigImplCopyWith<_$DeviceConfigImpl> get copyWith =>
|
|
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;
|
|
bool get pinComplexity => throw _privateConstructorUsedError;
|
|
int get fipsCapable => throw _privateConstructorUsedError;
|
|
int get fipsApproved => throw _privateConstructorUsedError;
|
|
int get resetBlocked => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DeviceInfo to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DeviceInfoCopyWith<DeviceInfo> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DeviceInfoCopyWith<$Res> {
|
|
factory $DeviceInfoCopyWith(
|
|
DeviceInfo value, $Res Function(DeviceInfo) then) =
|
|
_$DeviceInfoCopyWithImpl<$Res, DeviceInfo>;
|
|
@useResult
|
|
$Res call(
|
|
{DeviceConfig config,
|
|
int? serial,
|
|
Version version,
|
|
FormFactor formFactor,
|
|
Map<Transport, int> supportedCapabilities,
|
|
bool isLocked,
|
|
bool isFips,
|
|
bool isSky,
|
|
bool pinComplexity,
|
|
int fipsCapable,
|
|
int fipsApproved,
|
|
int resetBlocked});
|
|
|
|
$DeviceConfigCopyWith<$Res> get config;
|
|
$VersionCopyWith<$Res> get version;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DeviceInfoCopyWithImpl<$Res, $Val extends DeviceInfo>
|
|
implements $DeviceInfoCopyWith<$Res> {
|
|
_$DeviceInfoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? config = null,
|
|
Object? serial = freezed,
|
|
Object? version = null,
|
|
Object? formFactor = null,
|
|
Object? supportedCapabilities = null,
|
|
Object? isLocked = null,
|
|
Object? isFips = null,
|
|
Object? isSky = null,
|
|
Object? pinComplexity = null,
|
|
Object? fipsCapable = null,
|
|
Object? fipsApproved = null,
|
|
Object? resetBlocked = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
config: null == config
|
|
? _value.config
|
|
: config // ignore: cast_nullable_to_non_nullable
|
|
as DeviceConfig,
|
|
serial: freezed == serial
|
|
? _value.serial
|
|
: serial // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
version: null == version
|
|
? _value.version
|
|
: version // ignore: cast_nullable_to_non_nullable
|
|
as Version,
|
|
formFactor: null == formFactor
|
|
? _value.formFactor
|
|
: formFactor // ignore: cast_nullable_to_non_nullable
|
|
as FormFactor,
|
|
supportedCapabilities: null == supportedCapabilities
|
|
? _value.supportedCapabilities
|
|
: supportedCapabilities // ignore: cast_nullable_to_non_nullable
|
|
as Map<Transport, int>,
|
|
isLocked: null == isLocked
|
|
? _value.isLocked
|
|
: isLocked // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isFips: null == isFips
|
|
? _value.isFips
|
|
: isFips // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isSky: null == isSky
|
|
? _value.isSky
|
|
: isSky // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
pinComplexity: null == pinComplexity
|
|
? _value.pinComplexity
|
|
: pinComplexity // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
fipsCapable: null == fipsCapable
|
|
? _value.fipsCapable
|
|
: fipsCapable // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
fipsApproved: null == fipsApproved
|
|
? _value.fipsApproved
|
|
: fipsApproved // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
resetBlocked: null == resetBlocked
|
|
? _value.resetBlocked
|
|
: resetBlocked // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$DeviceConfigCopyWith<$Res> get config {
|
|
return $DeviceConfigCopyWith<$Res>(_value.config, (value) {
|
|
return _then(_value.copyWith(config: value) as $Val);
|
|
});
|
|
}
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$VersionCopyWith<$Res> get version {
|
|
return $VersionCopyWith<$Res>(_value.version, (value) {
|
|
return _then(_value.copyWith(version: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DeviceInfoImplCopyWith<$Res>
|
|
implements $DeviceInfoCopyWith<$Res> {
|
|
factory _$$DeviceInfoImplCopyWith(
|
|
_$DeviceInfoImpl value, $Res Function(_$DeviceInfoImpl) then) =
|
|
__$$DeviceInfoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{DeviceConfig config,
|
|
int? serial,
|
|
Version version,
|
|
FormFactor formFactor,
|
|
Map<Transport, int> supportedCapabilities,
|
|
bool isLocked,
|
|
bool isFips,
|
|
bool isSky,
|
|
bool pinComplexity,
|
|
int fipsCapable,
|
|
int fipsApproved,
|
|
int resetBlocked});
|
|
|
|
@override
|
|
$DeviceConfigCopyWith<$Res> get config;
|
|
@override
|
|
$VersionCopyWith<$Res> get version;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DeviceInfoImplCopyWithImpl<$Res>
|
|
extends _$DeviceInfoCopyWithImpl<$Res, _$DeviceInfoImpl>
|
|
implements _$$DeviceInfoImplCopyWith<$Res> {
|
|
__$$DeviceInfoImplCopyWithImpl(
|
|
_$DeviceInfoImpl _value, $Res Function(_$DeviceInfoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? config = null,
|
|
Object? serial = freezed,
|
|
Object? version = null,
|
|
Object? formFactor = null,
|
|
Object? supportedCapabilities = null,
|
|
Object? isLocked = null,
|
|
Object? isFips = null,
|
|
Object? isSky = null,
|
|
Object? pinComplexity = null,
|
|
Object? fipsCapable = null,
|
|
Object? fipsApproved = null,
|
|
Object? resetBlocked = null,
|
|
}) {
|
|
return _then(_$DeviceInfoImpl(
|
|
null == config
|
|
? _value.config
|
|
: config // ignore: cast_nullable_to_non_nullable
|
|
as DeviceConfig,
|
|
freezed == serial
|
|
? _value.serial
|
|
: serial // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
null == version
|
|
? _value.version
|
|
: version // ignore: cast_nullable_to_non_nullable
|
|
as Version,
|
|
null == formFactor
|
|
? _value.formFactor
|
|
: formFactor // ignore: cast_nullable_to_non_nullable
|
|
as FormFactor,
|
|
null == supportedCapabilities
|
|
? _value._supportedCapabilities
|
|
: supportedCapabilities // ignore: cast_nullable_to_non_nullable
|
|
as Map<Transport, int>,
|
|
null == isLocked
|
|
? _value.isLocked
|
|
: isLocked // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
null == isFips
|
|
? _value.isFips
|
|
: isFips // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
null == isSky
|
|
? _value.isSky
|
|
: isSky // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
null == pinComplexity
|
|
? _value.pinComplexity
|
|
: pinComplexity // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
null == fipsCapable
|
|
? _value.fipsCapable
|
|
: fipsCapable // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
null == fipsApproved
|
|
? _value.fipsApproved
|
|
: fipsApproved // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
null == resetBlocked
|
|
? _value.resetBlocked
|
|
: resetBlocked // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DeviceInfoImpl extends _DeviceInfo {
|
|
_$DeviceInfoImpl(
|
|
this.config,
|
|
this.serial,
|
|
this.version,
|
|
this.formFactor,
|
|
final Map<Transport, int> supportedCapabilities,
|
|
this.isLocked,
|
|
this.isFips,
|
|
this.isSky,
|
|
this.pinComplexity,
|
|
this.fipsCapable,
|
|
this.fipsApproved,
|
|
this.resetBlocked)
|
|
: _supportedCapabilities = supportedCapabilities,
|
|
super._();
|
|
|
|
factory _$DeviceInfoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DeviceInfoImplFromJson(json);
|
|
|
|
@override
|
|
final DeviceConfig config;
|
|
@override
|
|
final int? serial;
|
|
@override
|
|
final Version version;
|
|
@override
|
|
final FormFactor formFactor;
|
|
final Map<Transport, int> _supportedCapabilities;
|
|
@override
|
|
Map<Transport, int> get supportedCapabilities {
|
|
if (_supportedCapabilities is EqualUnmodifiableMapView)
|
|
return _supportedCapabilities;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_supportedCapabilities);
|
|
}
|
|
|
|
@override
|
|
final bool isLocked;
|
|
@override
|
|
final bool isFips;
|
|
@override
|
|
final bool isSky;
|
|
@override
|
|
final bool pinComplexity;
|
|
@override
|
|
final int fipsCapable;
|
|
@override
|
|
final int fipsApproved;
|
|
@override
|
|
final int resetBlocked;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DeviceInfo(config: $config, serial: $serial, version: $version, formFactor: $formFactor, supportedCapabilities: $supportedCapabilities, isLocked: $isLocked, isFips: $isFips, isSky: $isSky, pinComplexity: $pinComplexity, fipsCapable: $fipsCapable, fipsApproved: $fipsApproved, resetBlocked: $resetBlocked)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DeviceInfoImpl &&
|
|
(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) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._supportedCapabilities, _supportedCapabilities) &&
|
|
(identical(other.isLocked, isLocked) ||
|
|
other.isLocked == isLocked) &&
|
|
(identical(other.isFips, isFips) || other.isFips == isFips) &&
|
|
(identical(other.isSky, isSky) || other.isSky == isSky) &&
|
|
(identical(other.pinComplexity, pinComplexity) ||
|
|
other.pinComplexity == pinComplexity) &&
|
|
(identical(other.fipsCapable, fipsCapable) ||
|
|
other.fipsCapable == fipsCapable) &&
|
|
(identical(other.fipsApproved, fipsApproved) ||
|
|
other.fipsApproved == fipsApproved) &&
|
|
(identical(other.resetBlocked, resetBlocked) ||
|
|
other.resetBlocked == resetBlocked));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
config,
|
|
serial,
|
|
version,
|
|
formFactor,
|
|
const DeepCollectionEquality().hash(_supportedCapabilities),
|
|
isLocked,
|
|
isFips,
|
|
isSky,
|
|
pinComplexity,
|
|
fipsCapable,
|
|
fipsApproved,
|
|
resetBlocked);
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
|
|
__$$DeviceInfoImplCopyWithImpl<_$DeviceInfoImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DeviceInfoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _DeviceInfo extends DeviceInfo {
|
|
factory _DeviceInfo(
|
|
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,
|
|
final bool pinComplexity,
|
|
final int fipsCapable,
|
|
final int fipsApproved,
|
|
final int resetBlocked) = _$DeviceInfoImpl;
|
|
_DeviceInfo._() : super._();
|
|
|
|
factory _DeviceInfo.fromJson(Map<String, dynamic> json) =
|
|
_$DeviceInfoImpl.fromJson;
|
|
|
|
@override
|
|
DeviceConfig get config;
|
|
@override
|
|
int? get serial;
|
|
@override
|
|
Version get version;
|
|
@override
|
|
FormFactor get formFactor;
|
|
@override
|
|
Map<Transport, int> get supportedCapabilities;
|
|
@override
|
|
bool get isLocked;
|
|
@override
|
|
bool get isFips;
|
|
@override
|
|
bool get isSky;
|
|
@override
|
|
bool get pinComplexity;
|
|
@override
|
|
int get fipsCapable;
|
|
@override
|
|
int get fipsApproved;
|
|
@override
|
|
int get resetBlocked;
|
|
|
|
/// Create a copy of DeviceInfo
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|