yubioath-flutter/lib/management/models.freezed.dart
2024-01-24 09:39:03 +01:00

557 lines
17 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#custom-getters-and-methods');
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) =
_$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;
@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);
@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(ignore: true)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_enabledCapabilities),
autoEjectTimeout,
challengeResponseTimeout,
deviceFlags);
@JsonKey(ignore: true)
@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;
@override
@JsonKey(ignore: true)
_$$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;
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) =
_$DeviceInfoCopyWithImpl<$Res, DeviceInfo>;
@useResult
$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
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;
@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,
}) {
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,
) as $Val);
}
@override
@pragma('vm:prefer-inline')
$DeviceConfigCopyWith<$Res> get config {
return $DeviceConfigCopyWith<$Res>(_value.config, (value) {
return _then(_value.copyWith(config: value) as $Val);
});
}
@override
@pragma('vm:prefer-inline')
$VersionCopyWith<$Res> get version {
return $VersionCopyWith<$Res>(_value.version, (value) {
return _then(_value.copyWith(version: value) as $Val);
});
}
}
/// @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});
@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);
@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,
}) {
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,
));
}
}
/// @nodoc
@JsonSerializable()
class _$DeviceInfoImpl implements _DeviceInfo {
_$DeviceInfoImpl(
this.config,
this.serial,
this.version,
this.formFactor,
final Map<Transport, int> supportedCapabilities,
this.isLocked,
this.isFips,
this.isSky)
: _supportedCapabilities = supportedCapabilities;
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
String toString() {
return 'DeviceInfo(config: $config, serial: $serial, version: $version, formFactor: $formFactor, supportedCapabilities: $supportedCapabilities, isLocked: $isLocked, isFips: $isFips, isSky: $isSky)';
}
@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));
}
@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(
runtimeType,
config,
serial,
version,
formFactor,
const DeepCollectionEquality().hash(_supportedCapabilities),
isLocked,
isFips,
isSky);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
__$$DeviceInfoImplCopyWithImpl<_$DeviceInfoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$DeviceInfoImplToJson(
this,
);
}
}
abstract class _DeviceInfo implements 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) = _$DeviceInfoImpl;
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
@JsonKey(ignore: true)
_$$DeviceInfoImplCopyWith<_$DeviceInfoImpl> get copyWith =>
throw _privateConstructorUsedError;
}