yubioath-flutter/lib/management/models.freezed.dart

677 lines
22 KiB
Dart
Raw Normal View History

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(
2024-02-05 17:15:38 +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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
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;
2024-08-16 14:09:01 +03:00
/// Serializes this DeviceConfig to a JSON map.
2021-11-19 17:05:57 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceConfig
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$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
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceConfig
/// with the given fields replaced by the non-null parameter values.
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
2023-11-15 10:56:52 +03:00
abstract class _$$DeviceConfigImplCopyWith<$Res>
2021-11-19 17:05:57 +03:00
implements $DeviceConfigCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$DeviceConfigImplCopyWith(
_$DeviceConfigImpl value, $Res Function(_$DeviceConfigImpl) then) =
__$$DeviceConfigImplCopyWithImpl<$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
2023-11-15 10:56:52 +03:00
class __$$DeviceConfigImplCopyWithImpl<$Res>
extends _$DeviceConfigCopyWithImpl<$Res, _$DeviceConfigImpl>
implements _$$DeviceConfigImplCopyWith<$Res> {
__$$DeviceConfigImplCopyWithImpl(
_$DeviceConfigImpl _value, $Res Function(_$DeviceConfigImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceConfig
/// with the given fields replaced by the non-null parameter values.
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,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$DeviceConfigImpl(
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()
2023-11-15 10:56:52 +03:00
class _$DeviceConfigImpl implements _DeviceConfig {
_$DeviceConfigImpl(final Map<Transport, int> enabledCapabilities,
2022-05-12 12:06:28 +03:00
this.autoEjectTimeout, this.challengeResponseTimeout, this.deviceFlags)
: _enabledCapabilities = enabledCapabilities;
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _$DeviceConfigImpl.fromJson(Map<String, dynamic> json) =>
_$$DeviceConfigImplFromJson(json);
2021-11-19 17:05:57 +03:00
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
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$DeviceConfigImpl &&
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
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
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
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceConfig
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$DeviceConfigImplCopyWith<_$DeviceConfigImpl> get copyWith =>
__$$DeviceConfigImplCopyWithImpl<_$DeviceConfigImpl>(this, _$identity);
2021-11-19 17:05:57 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$DeviceConfigImplToJson(
2022-07-21 17:38:45 +03:00
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,
2023-11-15 10:56:52 +03:00
final int? deviceFlags) = _$DeviceConfigImpl;
2021-11-19 17:05:57 +03:00
factory _DeviceConfig.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$DeviceConfigImpl.fromJson;
2021-11-19 17:05:57 +03:00
@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;
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceConfig
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$DeviceConfigImplCopyWith<_$DeviceConfigImpl> 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;
2024-03-26 16:07:23 +03:00
bool get pinComplexity => throw _privateConstructorUsedError;
2024-06-25 15:06:19 +03:00
int get fipsCapable => throw _privateConstructorUsedError;
int get fipsApproved => throw _privateConstructorUsedError;
int get resetBlocked => throw _privateConstructorUsedError;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Serializes this DeviceInfo to a JSON map.
2021-11-19 17:05:57 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$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,
2024-03-26 16:07:23 +03:00
bool isSky,
2024-06-25 15:06:19 +03:00
bool pinComplexity,
int fipsCapable,
int fipsApproved,
int resetBlocked});
2021-11-19 17:05:57 +03:00
$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
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
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,
2024-03-26 16:07:23 +03:00
Object? pinComplexity = null,
2024-06-25 15:06:19 +03:00
Object? fipsCapable = null,
Object? fipsApproved = null,
Object? resetBlocked = 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,
2024-03-26 16:07:23 +03:00
pinComplexity: null == pinComplexity
? _value.pinComplexity
: pinComplexity // ignore: cast_nullable_to_non_nullable
as bool,
2024-06-25 15:06:19 +03:00
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,
2022-10-19 12:15:48 +03:00
) as $Val);
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
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
});
}
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
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
2023-11-15 10:56:52 +03:00
abstract class _$$DeviceInfoImplCopyWith<$Res>
2022-05-12 12:06:28 +03:00
implements $DeviceInfoCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$DeviceInfoImplCopyWith(
_$DeviceInfoImpl value, $Res Function(_$DeviceInfoImpl) then) =
__$$DeviceInfoImplCopyWithImpl<$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,
2024-03-26 16:07:23 +03:00
bool isSky,
2024-06-25 15:06:19 +03:00
bool pinComplexity,
int fipsCapable,
int fipsApproved,
int resetBlocked});
2021-11-19 17:05:57 +03:00
@override
$DeviceConfigCopyWith<$Res> get config;
@override
$VersionCopyWith<$Res> get version;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$DeviceInfoImplCopyWithImpl<$Res>
extends _$DeviceInfoCopyWithImpl<$Res, _$DeviceInfoImpl>
implements _$$DeviceInfoImplCopyWith<$Res> {
__$$DeviceInfoImplCopyWithImpl(
_$DeviceInfoImpl _value, $Res Function(_$DeviceInfoImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
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,
2024-03-26 16:07:23 +03:00
Object? pinComplexity = null,
2024-06-25 15:06:19 +03:00
Object? fipsCapable = null,
Object? fipsApproved = null,
Object? resetBlocked = null,
2021-11-19 17:05:57 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$DeviceInfoImpl(
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,
2024-03-26 16:07:23 +03:00
null == pinComplexity
? _value.pinComplexity
: pinComplexity // ignore: cast_nullable_to_non_nullable
as bool,
2024-06-25 15:06:19 +03:00
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,
2021-11-19 17:05:57 +03:00
));
}
}
/// @nodoc
@JsonSerializable()
class _$DeviceInfoImpl extends _DeviceInfo {
2023-11-15 10:56:52 +03:00
_$DeviceInfoImpl(
2022-05-12 12:06:28 +03:00
this.config,
this.serial,
this.version,
this.formFactor,
final Map<Transport, int> supportedCapabilities,
this.isLocked,
this.isFips,
2024-03-26 16:07:23 +03:00
this.isSky,
2024-06-25 15:06:19 +03:00
this.pinComplexity,
this.fipsCapable,
this.fipsApproved,
this.resetBlocked)
: _supportedCapabilities = supportedCapabilities,
super._();
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _$DeviceInfoImpl.fromJson(Map<String, dynamic> json) =>
_$$DeviceInfoImplFromJson(json);
2021-11-19 17:05:57 +03:00
@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;
2024-03-26 16:07:23 +03:00
@override
final bool pinComplexity;
2024-06-25 15:06:19 +03:00
@override
final int fipsCapable;
@override
final int fipsApproved;
@override
final int resetBlocked;
2021-11-19 17:05:57 +03:00
@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)';
2021-11-19 17:05:57 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$DeviceInfoImpl &&
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) &&
2024-03-26 16:07:23 +03:00
(identical(other.isSky, isSky) || other.isSky == isSky) &&
(identical(other.pinComplexity, pinComplexity) ||
2024-06-25 15:06:19 +03:00
other.pinComplexity == pinComplexity) &&
(identical(other.fipsCapable, fipsCapable) ||
other.fipsCapable == fipsCapable) &&
(identical(other.fipsApproved, fipsApproved) ||
other.fipsApproved == fipsApproved) &&
(identical(other.resetBlocked, resetBlocked) ||
other.resetBlocked == resetBlocked));
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
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,
2024-03-26 16:07:23 +03:00
isSky,
2024-06-25 15:06:19 +03:00
pinComplexity,
fipsCapable,
fipsApproved,
resetBlocked);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
__$$DeviceInfoImplCopyWithImpl<_$DeviceInfoImpl>(this, _$identity);
2021-11-19 17:05:57 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$DeviceInfoImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2021-11-19 17:05:57 +03:00
}
}
abstract class _DeviceInfo extends DeviceInfo {
2021-11-19 17:05:57 +03:00
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,
2024-03-26 16:07:23 +03:00
final bool isSky,
2024-06-25 15:06:19 +03:00
final bool pinComplexity,
final int fipsCapable,
final int fipsApproved,
final int resetBlocked) = _$DeviceInfoImpl;
_DeviceInfo._() : super._();
2021-11-19 17:05:57 +03:00
factory _DeviceInfo.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$DeviceInfoImpl.fromJson;
2021-11-19 17:05:57 +03:00
@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
2024-03-26 16:07:23 +03:00
bool get pinComplexity;
@override
2024-06-25 15:06:19 +03:00
int get fipsCapable;
@override
int get fipsApproved;
@override
int get resetBlocked;
2024-08-16 14:09:01 +03:00
/// Create a copy of DeviceInfo
/// with the given fields replaced by the non-null parameter values.
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError;
}