// 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 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 json) { return _DeviceConfig.fromJson(json); } /// @nodoc mixin _$DeviceConfig { Map get enabledCapabilities => throw _privateConstructorUsedError; int? get autoEjectTimeout => throw _privateConstructorUsedError; int? get challengeResponseTimeout => throw _privateConstructorUsedError; int? get deviceFlags => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $DeviceConfigCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DeviceConfigCopyWith<$Res> { factory $DeviceConfigCopyWith( DeviceConfig value, $Res Function(DeviceConfig) then) = _$DeviceConfigCopyWithImpl<$Res, DeviceConfig>; @useResult $Res call( {Map 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, 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 _$$_DeviceConfigCopyWith<$Res> implements $DeviceConfigCopyWith<$Res> { factory _$$_DeviceConfigCopyWith( _$_DeviceConfig value, $Res Function(_$_DeviceConfig) then) = __$$_DeviceConfigCopyWithImpl<$Res>; @override @useResult $Res call( {Map enabledCapabilities, int? autoEjectTimeout, int? challengeResponseTimeout, int? deviceFlags}); } /// @nodoc class __$$_DeviceConfigCopyWithImpl<$Res> extends _$DeviceConfigCopyWithImpl<$Res, _$_DeviceConfig> implements _$$_DeviceConfigCopyWith<$Res> { __$$_DeviceConfigCopyWithImpl( _$_DeviceConfig _value, $Res Function(_$_DeviceConfig) _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(_$_DeviceConfig( null == enabledCapabilities ? _value._enabledCapabilities : enabledCapabilities // ignore: cast_nullable_to_non_nullable as Map, 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 _$_DeviceConfig implements _DeviceConfig { _$_DeviceConfig(final Map enabledCapabilities, this.autoEjectTimeout, this.challengeResponseTimeout, this.deviceFlags) : _enabledCapabilities = enabledCapabilities; factory _$_DeviceConfig.fromJson(Map json) => _$$_DeviceConfigFromJson(json); final Map _enabledCapabilities; @override Map 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 ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_DeviceConfig && 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') _$$_DeviceConfigCopyWith<_$_DeviceConfig> get copyWith => __$$_DeviceConfigCopyWithImpl<_$_DeviceConfig>(this, _$identity); @override Map toJson() { return _$$_DeviceConfigToJson( this, ); } } abstract class _DeviceConfig implements DeviceConfig { factory _DeviceConfig( final Map enabledCapabilities, final int? autoEjectTimeout, final int? challengeResponseTimeout, final int? deviceFlags) = _$_DeviceConfig; factory _DeviceConfig.fromJson(Map json) = _$_DeviceConfig.fromJson; @override Map get enabledCapabilities; @override int? get autoEjectTimeout; @override int? get challengeResponseTimeout; @override int? get deviceFlags; @override @JsonKey(ignore: true) _$$_DeviceConfigCopyWith<_$_DeviceConfig> get copyWith => throw _privateConstructorUsedError; } DeviceInfo _$DeviceInfoFromJson(Map 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 get supportedCapabilities => throw _privateConstructorUsedError; bool get isLocked => throw _privateConstructorUsedError; bool get isFips => throw _privateConstructorUsedError; bool get isSky => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $DeviceInfoCopyWith 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 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, 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 _$$_DeviceInfoCopyWith<$Res> implements $DeviceInfoCopyWith<$Res> { factory _$$_DeviceInfoCopyWith( _$_DeviceInfo value, $Res Function(_$_DeviceInfo) then) = __$$_DeviceInfoCopyWithImpl<$Res>; @override @useResult $Res call( {DeviceConfig config, int? serial, Version version, FormFactor formFactor, Map supportedCapabilities, bool isLocked, bool isFips, bool isSky}); @override $DeviceConfigCopyWith<$Res> get config; @override $VersionCopyWith<$Res> get version; } /// @nodoc class __$$_DeviceInfoCopyWithImpl<$Res> extends _$DeviceInfoCopyWithImpl<$Res, _$_DeviceInfo> implements _$$_DeviceInfoCopyWith<$Res> { __$$_DeviceInfoCopyWithImpl( _$_DeviceInfo _value, $Res Function(_$_DeviceInfo) _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(_$_DeviceInfo( 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, 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 _$_DeviceInfo implements _DeviceInfo { _$_DeviceInfo( this.config, this.serial, this.version, this.formFactor, final Map supportedCapabilities, this.isLocked, this.isFips, this.isSky) : _supportedCapabilities = supportedCapabilities; factory _$_DeviceInfo.fromJson(Map json) => _$$_DeviceInfoFromJson(json); @override final DeviceConfig config; @override final int? serial; @override final Version version; @override final FormFactor formFactor; final Map _supportedCapabilities; @override Map 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 ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_DeviceInfo && (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') _$$_DeviceInfoCopyWith<_$_DeviceInfo> get copyWith => __$$_DeviceInfoCopyWithImpl<_$_DeviceInfo>(this, _$identity); @override Map toJson() { return _$$_DeviceInfoToJson( this, ); } } abstract class _DeviceInfo implements DeviceInfo { factory _DeviceInfo( final DeviceConfig config, final int? serial, final Version version, final FormFactor formFactor, final Map supportedCapabilities, final bool isLocked, final bool isFips, final bool isSky) = _$_DeviceInfo; factory _DeviceInfo.fromJson(Map json) = _$_DeviceInfo.fromJson; @override DeviceConfig get config; @override int? get serial; @override Version get version; @override FormFactor get formFactor; @override Map get supportedCapabilities; @override bool get isLocked; @override bool get isFips; @override bool get isSky; @override @JsonKey(ignore: true) _$$_DeviceInfoCopyWith<_$_DeviceInfo> get copyWith => throw _privateConstructorUsedError; }