// dart format width=80 // 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 'local_account.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$LocalAccount { // The super identity key record for the account, // containing the publicKey in the currentIdentity SuperIdentity get superIdentity; // The encrypted currentIdentity secret that goes with // the identityPublicKey with appended salt @Uint8ListJsonConverter() Uint8List get identitySecretBytes; // The kind of encryption input used on the account EncryptionKeyType get encryptionKeyType; // If account is not hidden, password can be retrieved via bool get biometricsEnabled; // Keep account hidden unless account password is entered // (tries all hidden accounts with auth method (no biometrics)) bool get hiddenAccount; // Display name for account until it is unlocked String get name; /// Create a copy of LocalAccount /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LocalAccountCopyWith get copyWith => _$LocalAccountCopyWithImpl( this as LocalAccount, _$identity); /// Serializes this LocalAccount to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is LocalAccount && (identical(other.superIdentity, superIdentity) || other.superIdentity == superIdentity) && const DeepCollectionEquality() .equals(other.identitySecretBytes, identitySecretBytes) && (identical(other.encryptionKeyType, encryptionKeyType) || other.encryptionKeyType == encryptionKeyType) && (identical(other.biometricsEnabled, biometricsEnabled) || other.biometricsEnabled == biometricsEnabled) && (identical(other.hiddenAccount, hiddenAccount) || other.hiddenAccount == hiddenAccount) && (identical(other.name, name) || other.name == name)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, superIdentity, const DeepCollectionEquality().hash(identitySecretBytes), encryptionKeyType, biometricsEnabled, hiddenAccount, name); @override String toString() { return 'LocalAccount(superIdentity: $superIdentity, identitySecretBytes: $identitySecretBytes, encryptionKeyType: $encryptionKeyType, biometricsEnabled: $biometricsEnabled, hiddenAccount: $hiddenAccount, name: $name)'; } } /// @nodoc abstract mixin class $LocalAccountCopyWith<$Res> { factory $LocalAccountCopyWith( LocalAccount value, $Res Function(LocalAccount) _then) = _$LocalAccountCopyWithImpl; @useResult $Res call( {SuperIdentity superIdentity, @Uint8ListJsonConverter() Uint8List identitySecretBytes, EncryptionKeyType encryptionKeyType, bool biometricsEnabled, bool hiddenAccount, String name}); $SuperIdentityCopyWith<$Res> get superIdentity; } /// @nodoc class _$LocalAccountCopyWithImpl<$Res> implements $LocalAccountCopyWith<$Res> { _$LocalAccountCopyWithImpl(this._self, this._then); final LocalAccount _self; final $Res Function(LocalAccount) _then; /// Create a copy of LocalAccount /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? superIdentity = null, Object? identitySecretBytes = null, Object? encryptionKeyType = null, Object? biometricsEnabled = null, Object? hiddenAccount = null, Object? name = null, }) { return _then(_self.copyWith( superIdentity: null == superIdentity ? _self.superIdentity : superIdentity // ignore: cast_nullable_to_non_nullable as SuperIdentity, identitySecretBytes: null == identitySecretBytes ? _self.identitySecretBytes : identitySecretBytes // ignore: cast_nullable_to_non_nullable as Uint8List, encryptionKeyType: null == encryptionKeyType ? _self.encryptionKeyType : encryptionKeyType // ignore: cast_nullable_to_non_nullable as EncryptionKeyType, biometricsEnabled: null == biometricsEnabled ? _self.biometricsEnabled : biometricsEnabled // ignore: cast_nullable_to_non_nullable as bool, hiddenAccount: null == hiddenAccount ? _self.hiddenAccount : hiddenAccount // ignore: cast_nullable_to_non_nullable as bool, name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String, )); } /// Create a copy of LocalAccount /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SuperIdentityCopyWith<$Res> get superIdentity { return $SuperIdentityCopyWith<$Res>(_self.superIdentity, (value) { return _then(_self.copyWith(superIdentity: value)); }); } } /// @nodoc @JsonSerializable() class _LocalAccount implements LocalAccount { const _LocalAccount( {required this.superIdentity, @Uint8ListJsonConverter() required this.identitySecretBytes, required this.encryptionKeyType, required this.biometricsEnabled, required this.hiddenAccount, required this.name}); factory _LocalAccount.fromJson(Map json) => _$LocalAccountFromJson(json); // The super identity key record for the account, // containing the publicKey in the currentIdentity @override final SuperIdentity superIdentity; // The encrypted currentIdentity secret that goes with // the identityPublicKey with appended salt @override @Uint8ListJsonConverter() final Uint8List identitySecretBytes; // The kind of encryption input used on the account @override final EncryptionKeyType encryptionKeyType; // If account is not hidden, password can be retrieved via @override final bool biometricsEnabled; // Keep account hidden unless account password is entered // (tries all hidden accounts with auth method (no biometrics)) @override final bool hiddenAccount; // Display name for account until it is unlocked @override final String name; /// Create a copy of LocalAccount /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$LocalAccountCopyWith<_LocalAccount> get copyWith => __$LocalAccountCopyWithImpl<_LocalAccount>(this, _$identity); @override Map toJson() { return _$LocalAccountToJson( this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _LocalAccount && (identical(other.superIdentity, superIdentity) || other.superIdentity == superIdentity) && const DeepCollectionEquality() .equals(other.identitySecretBytes, identitySecretBytes) && (identical(other.encryptionKeyType, encryptionKeyType) || other.encryptionKeyType == encryptionKeyType) && (identical(other.biometricsEnabled, biometricsEnabled) || other.biometricsEnabled == biometricsEnabled) && (identical(other.hiddenAccount, hiddenAccount) || other.hiddenAccount == hiddenAccount) && (identical(other.name, name) || other.name == name)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, superIdentity, const DeepCollectionEquality().hash(identitySecretBytes), encryptionKeyType, biometricsEnabled, hiddenAccount, name); @override String toString() { return 'LocalAccount(superIdentity: $superIdentity, identitySecretBytes: $identitySecretBytes, encryptionKeyType: $encryptionKeyType, biometricsEnabled: $biometricsEnabled, hiddenAccount: $hiddenAccount, name: $name)'; } } /// @nodoc abstract mixin class _$LocalAccountCopyWith<$Res> implements $LocalAccountCopyWith<$Res> { factory _$LocalAccountCopyWith( _LocalAccount value, $Res Function(_LocalAccount) _then) = __$LocalAccountCopyWithImpl; @override @useResult $Res call( {SuperIdentity superIdentity, @Uint8ListJsonConverter() Uint8List identitySecretBytes, EncryptionKeyType encryptionKeyType, bool biometricsEnabled, bool hiddenAccount, String name}); @override $SuperIdentityCopyWith<$Res> get superIdentity; } /// @nodoc class __$LocalAccountCopyWithImpl<$Res> implements _$LocalAccountCopyWith<$Res> { __$LocalAccountCopyWithImpl(this._self, this._then); final _LocalAccount _self; final $Res Function(_LocalAccount) _then; /// Create a copy of LocalAccount /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({ Object? superIdentity = null, Object? identitySecretBytes = null, Object? encryptionKeyType = null, Object? biometricsEnabled = null, Object? hiddenAccount = null, Object? name = null, }) { return _then(_LocalAccount( superIdentity: null == superIdentity ? _self.superIdentity : superIdentity // ignore: cast_nullable_to_non_nullable as SuperIdentity, identitySecretBytes: null == identitySecretBytes ? _self.identitySecretBytes : identitySecretBytes // ignore: cast_nullable_to_non_nullable as Uint8List, encryptionKeyType: null == encryptionKeyType ? _self.encryptionKeyType : encryptionKeyType // ignore: cast_nullable_to_non_nullable as EncryptionKeyType, biometricsEnabled: null == biometricsEnabled ? _self.biometricsEnabled : biometricsEnabled // ignore: cast_nullable_to_non_nullable as bool, hiddenAccount: null == hiddenAccount ? _self.hiddenAccount : hiddenAccount // ignore: cast_nullable_to_non_nullable as bool, name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String, )); } /// Create a copy of LocalAccount /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SuperIdentityCopyWith<$Res> get superIdentity { return $SuperIdentityCopyWith<$Res>(_self.superIdentity, (value) { return _then(_self.copyWith(superIdentity: value)); }); } } // dart format on