From beec1224ffa3a6ba9f1d260a43c811194d3a2262 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Thu, 7 Jul 2022 10:29:42 +0200 Subject: [PATCH] Rebuild freezed classes. --- lib/app/models.freezed.dart | 30 ++++++++--------- lib/core/models.freezed.dart | 10 +++--- lib/desktop/models.freezed.dart | 16 ++++----- lib/fido/models.freezed.dart | 26 +++++++-------- lib/management/models.freezed.dart | 26 +++++++-------- lib/oath/models.freezed.dart | 52 +++++++++++++++--------------- 6 files changed, 79 insertions(+), 81 deletions(-) diff --git a/lib/app/models.freezed.dart b/lib/app/models.freezed.dart index 1978364e..5f34e648 100755 --- a/lib/app/models.freezed.dart +++ b/lib/app/models.freezed.dart @@ -175,11 +175,11 @@ abstract class _YubiKeyData implements YubiKeyData { _$_YubiKeyData; @override - DeviceNode get node => throw _privateConstructorUsedError; + DeviceNode get node; @override - String get name => throw _privateConstructorUsedError; + String get name; @override - DeviceInfo get info => throw _privateConstructorUsedError; + DeviceInfo get info; @override @JsonKey(ignore: true) _$$_YubiKeyDataCopyWith<_$_YubiKeyData> get copyWith => @@ -454,11 +454,11 @@ abstract class UsbYubiKeyNode extends DeviceNode { UsbYubiKeyNode._() : super._(); @override - DevicePath get path => throw _privateConstructorUsedError; + DevicePath get path; @override - String get name => throw _privateConstructorUsedError; - UsbPid get pid => throw _privateConstructorUsedError; - DeviceInfo? get info => throw _privateConstructorUsedError; + String get name; + UsbPid get pid; + DeviceInfo? get info; @override @JsonKey(ignore: true) _$$UsbYubiKeyNodeCopyWith<_$UsbYubiKeyNode> get copyWith => @@ -613,9 +613,9 @@ abstract class NfcReaderNode extends DeviceNode { NfcReaderNode._() : super._(); @override - DevicePath get path => throw _privateConstructorUsedError; + DevicePath get path; @override - String get name => throw _privateConstructorUsedError; + String get name; @override @JsonKey(ignore: true) _$$NfcReaderNodeCopyWith<_$NfcReaderNode> get copyWith => @@ -762,11 +762,11 @@ abstract class _MenuAction implements MenuAction { final void Function(BuildContext)? action}) = _$_MenuAction; @override - String get text => throw _privateConstructorUsedError; + String get text; @override - Widget get icon => throw _privateConstructorUsedError; + Widget get icon; @override - void Function(BuildContext)? get action => throw _privateConstructorUsedError; + void Function(BuildContext)? get action; @override @JsonKey(ignore: true) _$$_MenuActionCopyWith<_$_MenuAction> get copyWith => @@ -914,11 +914,11 @@ abstract class _WindowState implements WindowState { required final bool active}) = _$_WindowState; @override - bool get focused => throw _privateConstructorUsedError; + bool get focused; @override - bool get visible => throw _privateConstructorUsedError; + bool get visible; @override - bool get active => throw _privateConstructorUsedError; + bool get active; @override @JsonKey(ignore: true) _$$_WindowStateCopyWith<_$_WindowState> get copyWith => diff --git a/lib/core/models.freezed.dart b/lib/core/models.freezed.dart index 91e5f4ac..dce8a62d 100755 --- a/lib/core/models.freezed.dart +++ b/lib/core/models.freezed.dart @@ -151,11 +151,11 @@ abstract class _Version extends Version { const _Version._() : super._(); @override - int get major => throw _privateConstructorUsedError; + int get major; @override - int get minor => throw _privateConstructorUsedError; + int get minor; @override - int get patch => throw _privateConstructorUsedError; + int get patch; @override @JsonKey(ignore: true) _$$_VersionCopyWith<_$_Version> get copyWith => @@ -284,9 +284,9 @@ abstract class _Pair implements Pair { factory _Pair(final T1 first, final T2 second) = _$_Pair; @override - T1 get first => throw _privateConstructorUsedError; + T1 get first; @override - T2 get second => throw _privateConstructorUsedError; + T2 get second; @override @JsonKey(ignore: true) _$$_PairCopyWith> get copyWith => diff --git a/lib/desktop/models.freezed.dart b/lib/desktop/models.freezed.dart index 2108f3d8..cfdb7ee5 100755 --- a/lib/desktop/models.freezed.dart +++ b/lib/desktop/models.freezed.dart @@ -272,7 +272,7 @@ abstract class Success implements RpcResponse { factory Success.fromJson(Map json) = _$Success.fromJson; @override - Map get body => throw _privateConstructorUsedError; + Map get body; @override @JsonKey(ignore: true) _$$SuccessCopyWith<_$Success> get copyWith => @@ -446,9 +446,9 @@ abstract class Signal implements RpcResponse { factory Signal.fromJson(Map json) = _$Signal.fromJson; - String get status => throw _privateConstructorUsedError; + String get status; @override - Map get body => throw _privateConstructorUsedError; + Map get body; @override @JsonKey(ignore: true) _$$SignalCopyWith<_$Signal> get copyWith => @@ -633,10 +633,10 @@ abstract class RpcError implements RpcResponse { factory RpcError.fromJson(Map json) = _$RpcError.fromJson; - String get status => throw _privateConstructorUsedError; - String get message => throw _privateConstructorUsedError; + String get status; + String get message; @override - Map get body => throw _privateConstructorUsedError; + Map get body; @override @JsonKey(ignore: true) _$$RpcErrorCopyWith<_$RpcError> get copyWith => @@ -780,9 +780,9 @@ abstract class _RpcState implements RpcState { factory _RpcState.fromJson(Map json) = _$_RpcState.fromJson; @override - String get version => throw _privateConstructorUsedError; + String get version; @override - bool get isAdmin => throw _privateConstructorUsedError; + bool get isAdmin; @override @JsonKey(ignore: true) _$$_RpcStateCopyWith<_$_RpcState> get copyWith => diff --git a/lib/fido/models.freezed.dart b/lib/fido/models.freezed.dart index aa9bc85b..b573ef00 100755 --- a/lib/fido/models.freezed.dart +++ b/lib/fido/models.freezed.dart @@ -162,9 +162,9 @@ abstract class _FidoState extends FidoState { _$_FidoState.fromJson; @override - Map get info => throw _privateConstructorUsedError; + Map get info; @override - bool get unlocked => throw _privateConstructorUsedError; + bool get unlocked; @override @JsonKey(ignore: true) _$$_FidoStateCopyWith<_$_FidoState> get copyWith => @@ -471,8 +471,8 @@ abstract class _PinFailure implements PinResult { factory _PinFailure(final int retries, final bool authBlocked) = _$_PinFailure; - int get retries => throw _privateConstructorUsedError; - bool get authBlocked => throw _privateConstructorUsedError; + int get retries; + bool get authBlocked; @JsonKey(ignore: true) _$$_PinFailureCopyWith<_$_PinFailure> get copyWith => throw _privateConstructorUsedError; @@ -620,9 +620,9 @@ abstract class _Fingerprint extends Fingerprint { _$_Fingerprint.fromJson; @override - String get templateId => throw _privateConstructorUsedError; + String get templateId; @override - String? get name => throw _privateConstructorUsedError; + String? get name; @override @JsonKey(ignore: true) _$$_FingerprintCopyWith<_$_Fingerprint> get copyWith => @@ -828,7 +828,7 @@ class _$_EventCapture implements _EventCapture { abstract class _EventCapture implements FingerprintEvent { factory _EventCapture(final int remaining) = _$_EventCapture; - int get remaining => throw _privateConstructorUsedError; + int get remaining; @JsonKey(ignore: true) _$$_EventCaptureCopyWith<_$_EventCapture> get copyWith => throw _privateConstructorUsedError; @@ -978,7 +978,7 @@ class _$_EventComplete implements _EventComplete { abstract class _EventComplete implements FingerprintEvent { factory _EventComplete(final Fingerprint fingerprint) = _$_EventComplete; - Fingerprint get fingerprint => throw _privateConstructorUsedError; + Fingerprint get fingerprint; @JsonKey(ignore: true) _$$_EventCompleteCopyWith<_$_EventComplete> get copyWith => throw _privateConstructorUsedError; @@ -1118,7 +1118,7 @@ class _$_EventError implements _EventError { abstract class _EventError implements FingerprintEvent { factory _EventError(final int code) = _$_EventError; - int get code => throw _privateConstructorUsedError; + int get code; @JsonKey(ignore: true) _$$_EventErrorCopyWith<_$_EventError> get copyWith => throw _privateConstructorUsedError; @@ -1304,13 +1304,13 @@ abstract class _FidoCredential implements FidoCredential { _$_FidoCredential.fromJson; @override - String get rpId => throw _privateConstructorUsedError; + String get rpId; @override - String get credentialId => throw _privateConstructorUsedError; + String get credentialId; @override - String get userId => throw _privateConstructorUsedError; + String get userId; @override - String get userName => throw _privateConstructorUsedError; + String get userName; @override @JsonKey(ignore: true) _$$_FidoCredentialCopyWith<_$_FidoCredential> get copyWith => diff --git a/lib/management/models.freezed.dart b/lib/management/models.freezed.dart index 63a32b19..e6b5b7e0 100755 --- a/lib/management/models.freezed.dart +++ b/lib/management/models.freezed.dart @@ -208,14 +208,13 @@ abstract class _DeviceConfig implements DeviceConfig { _$_DeviceConfig.fromJson; @override - Map get enabledCapabilities => - throw _privateConstructorUsedError; + Map get enabledCapabilities; @override - int? get autoEjectTimeout => throw _privateConstructorUsedError; + int? get autoEjectTimeout; @override - int? get challengeResponseTimeout => throw _privateConstructorUsedError; + int? get challengeResponseTimeout; @override - int? get deviceFlags => throw _privateConstructorUsedError; + int? get deviceFlags; @override @JsonKey(ignore: true) _$$_DeviceConfigCopyWith<_$_DeviceConfig> get copyWith => @@ -514,22 +513,21 @@ abstract class _DeviceInfo implements DeviceInfo { _$_DeviceInfo.fromJson; @override - DeviceConfig get config => throw _privateConstructorUsedError; + DeviceConfig get config; @override - int? get serial => throw _privateConstructorUsedError; + int? get serial; @override - Version get version => throw _privateConstructorUsedError; + Version get version; @override - FormFactor get formFactor => throw _privateConstructorUsedError; + FormFactor get formFactor; @override - Map get supportedCapabilities => - throw _privateConstructorUsedError; + Map get supportedCapabilities; @override - bool get isLocked => throw _privateConstructorUsedError; + bool get isLocked; @override - bool get isFips => throw _privateConstructorUsedError; + bool get isFips; @override - bool get isSky => throw _privateConstructorUsedError; + bool get isSky; @override @JsonKey(ignore: true) _$$_DeviceInfoCopyWith<_$_DeviceInfo> get copyWith => diff --git a/lib/oath/models.freezed.dart b/lib/oath/models.freezed.dart index d10ecc25..4d4d94f4 100755 --- a/lib/oath/models.freezed.dart +++ b/lib/oath/models.freezed.dart @@ -253,19 +253,19 @@ abstract class _OathCredential implements OathCredential { _$_OathCredential.fromJson; @override - String get deviceId => throw _privateConstructorUsedError; + String get deviceId; @override - String get id => throw _privateConstructorUsedError; + String get id; @override - String? get issuer => throw _privateConstructorUsedError; + String? get issuer; @override - String get name => throw _privateConstructorUsedError; + String get name; @override - OathType get oathType => throw _privateConstructorUsedError; + OathType get oathType; @override - int get period => throw _privateConstructorUsedError; + int get period; @override - bool get touchRequired => throw _privateConstructorUsedError; + bool get touchRequired; @override @JsonKey(ignore: true) _$$_OathCredentialCopyWith<_$_OathCredential> get copyWith => @@ -424,11 +424,11 @@ abstract class _OathCode implements OathCode { factory _OathCode.fromJson(Map json) = _$_OathCode.fromJson; @override - String get value => throw _privateConstructorUsedError; + String get value; @override - int get validFrom => throw _privateConstructorUsedError; + int get validFrom; @override - int get validTo => throw _privateConstructorUsedError; + int get validTo; @override @JsonKey(ignore: true) _$$_OathCodeCopyWith<_$_OathCode> get copyWith => @@ -599,9 +599,9 @@ abstract class _OathPair implements OathPair { factory _OathPair.fromJson(Map json) = _$_OathPair.fromJson; @override - OathCredential get credential => throw _privateConstructorUsedError; + OathCredential get credential; @override - OathCode? get code => throw _privateConstructorUsedError; + OathCode? get code; @override @JsonKey(ignore: true) _$$_OathPairCopyWith<_$_OathPair> get copyWith => @@ -838,17 +838,17 @@ abstract class _OathState implements OathState { _$_OathState.fromJson; @override - String get deviceId => throw _privateConstructorUsedError; + String get deviceId; @override - Version get version => throw _privateConstructorUsedError; + Version get version; @override - bool get hasKey => throw _privateConstructorUsedError; + bool get hasKey; @override - bool get remembered => throw _privateConstructorUsedError; + bool get remembered; @override - bool get locked => throw _privateConstructorUsedError; + bool get locked; @override - KeystoreState get keystore => throw _privateConstructorUsedError; + KeystoreState get keystore; @override @JsonKey(ignore: true) _$$_OathStateCopyWith<_$_OathState> get copyWith => @@ -1126,21 +1126,21 @@ abstract class _CredentialData extends CredentialData { _$_CredentialData.fromJson; @override - String? get issuer => throw _privateConstructorUsedError; + String? get issuer; @override - String get name => throw _privateConstructorUsedError; + String get name; @override - String get secret => throw _privateConstructorUsedError; + String get secret; @override - OathType get oathType => throw _privateConstructorUsedError; + OathType get oathType; @override - HashAlgorithm get hashAlgorithm => throw _privateConstructorUsedError; + HashAlgorithm get hashAlgorithm; @override - int get digits => throw _privateConstructorUsedError; + int get digits; @override - int get period => throw _privateConstructorUsedError; + int get period; @override - int get counter => throw _privateConstructorUsedError; + int get counter; @override @JsonKey(ignore: true) _$$_CredentialDataCopyWith<_$_CredentialData> get copyWith =>