veilidchat/lib/entities/user_login.freezed.dart

406 lines
14 KiB
Dart
Raw Normal View History

2023-07-09 04:07:21 +00:00
// 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 'user_login.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');
UserLogin _$UserLoginFromJson(Map<String, dynamic> json) {
return _UserLogin.fromJson(json);
}
/// @nodoc
mixin _$UserLogin {
2023-07-22 01:25:27 +00:00
// Master record key for the user used to index the local accounts table
2023-07-23 03:29:10 +00:00
Typed<FixedEncodedString43> get accountMasterRecordKey =>
2023-07-09 04:07:21 +00:00
throw _privateConstructorUsedError; // The identity secret as unlocked from the local accounts table
2023-07-23 03:29:10 +00:00
Typed<FixedEncodedString43> get identitySecret =>
2023-08-01 04:39:50 +00:00
throw _privateConstructorUsedError; // The account record key, owner key and secret pulled from the identity
AccountRecordInfo get accountRecordInfo =>
2023-07-09 04:07:21 +00:00
throw _privateConstructorUsedError; // The time this login was most recently used
Timestamp get lastActive => throw _privateConstructorUsedError;
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$UserLoginCopyWith<UserLogin> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $UserLoginCopyWith<$Res> {
factory $UserLoginCopyWith(UserLogin value, $Res Function(UserLogin) then) =
_$UserLoginCopyWithImpl<$Res, UserLogin>;
@useResult
$Res call(
2023-07-23 03:29:10 +00:00
{Typed<FixedEncodedString43> accountMasterRecordKey,
Typed<FixedEncodedString43> identitySecret,
2023-08-01 04:39:50 +00:00
AccountRecordInfo accountRecordInfo,
2023-07-09 04:07:21 +00:00
Timestamp lastActive});
2023-08-01 04:39:50 +00:00
$AccountRecordInfoCopyWith<$Res> get accountRecordInfo;
2023-07-09 04:07:21 +00:00
}
/// @nodoc
class _$UserLoginCopyWithImpl<$Res, $Val extends UserLogin>
implements $UserLoginCopyWith<$Res> {
_$UserLoginCopyWithImpl(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({
2023-07-23 03:29:10 +00:00
Object? accountMasterRecordKey = null,
Object? identitySecret = null,
2023-08-01 04:39:50 +00:00
Object? accountRecordInfo = null,
2023-07-09 04:07:21 +00:00
Object? lastActive = null,
}) {
return _then(_value.copyWith(
2023-07-23 03:29:10 +00:00
accountMasterRecordKey: null == accountMasterRecordKey
? _value.accountMasterRecordKey
: accountMasterRecordKey // ignore: cast_nullable_to_non_nullable
2023-07-09 04:07:21 +00:00
as Typed<FixedEncodedString43>,
2023-07-23 03:29:10 +00:00
identitySecret: null == identitySecret
? _value.identitySecret
: identitySecret // ignore: cast_nullable_to_non_nullable
2023-07-09 04:07:21 +00:00
as Typed<FixedEncodedString43>,
2023-08-01 04:39:50 +00:00
accountRecordInfo: null == accountRecordInfo
? _value.accountRecordInfo
: accountRecordInfo // ignore: cast_nullable_to_non_nullable
as AccountRecordInfo,
2023-07-09 04:07:21 +00:00
lastActive: null == lastActive
? _value.lastActive
: lastActive // ignore: cast_nullable_to_non_nullable
as Timestamp,
) as $Val);
}
2023-08-01 04:39:50 +00:00
@override
@pragma('vm:prefer-inline')
$AccountRecordInfoCopyWith<$Res> get accountRecordInfo {
return $AccountRecordInfoCopyWith<$Res>(_value.accountRecordInfo, (value) {
return _then(_value.copyWith(accountRecordInfo: value) as $Val);
});
}
2023-07-09 04:07:21 +00:00
}
/// @nodoc
abstract class _$$_UserLoginCopyWith<$Res> implements $UserLoginCopyWith<$Res> {
factory _$$_UserLoginCopyWith(
_$_UserLogin value, $Res Function(_$_UserLogin) then) =
__$$_UserLoginCopyWithImpl<$Res>;
@override
@useResult
$Res call(
2023-07-23 03:29:10 +00:00
{Typed<FixedEncodedString43> accountMasterRecordKey,
Typed<FixedEncodedString43> identitySecret,
2023-08-01 04:39:50 +00:00
AccountRecordInfo accountRecordInfo,
2023-07-09 04:07:21 +00:00
Timestamp lastActive});
2023-08-01 04:39:50 +00:00
@override
$AccountRecordInfoCopyWith<$Res> get accountRecordInfo;
2023-07-09 04:07:21 +00:00
}
/// @nodoc
class __$$_UserLoginCopyWithImpl<$Res>
extends _$UserLoginCopyWithImpl<$Res, _$_UserLogin>
implements _$$_UserLoginCopyWith<$Res> {
__$$_UserLoginCopyWithImpl(
_$_UserLogin _value, $Res Function(_$_UserLogin) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
2023-07-23 03:29:10 +00:00
Object? accountMasterRecordKey = null,
Object? identitySecret = null,
2023-08-01 04:39:50 +00:00
Object? accountRecordInfo = null,
2023-07-09 04:07:21 +00:00
Object? lastActive = null,
}) {
return _then(_$_UserLogin(
2023-07-23 03:29:10 +00:00
accountMasterRecordKey: null == accountMasterRecordKey
? _value.accountMasterRecordKey
: accountMasterRecordKey // ignore: cast_nullable_to_non_nullable
2023-07-09 04:07:21 +00:00
as Typed<FixedEncodedString43>,
2023-07-23 03:29:10 +00:00
identitySecret: null == identitySecret
? _value.identitySecret
: identitySecret // ignore: cast_nullable_to_non_nullable
2023-07-09 04:07:21 +00:00
as Typed<FixedEncodedString43>,
2023-08-01 04:39:50 +00:00
accountRecordInfo: null == accountRecordInfo
? _value.accountRecordInfo
: accountRecordInfo // ignore: cast_nullable_to_non_nullable
as AccountRecordInfo,
2023-07-09 04:07:21 +00:00
lastActive: null == lastActive
? _value.lastActive
: lastActive // ignore: cast_nullable_to_non_nullable
as Timestamp,
));
}
}
/// @nodoc
@JsonSerializable()
class _$_UserLogin implements _UserLogin {
const _$_UserLogin(
2023-07-23 03:29:10 +00:00
{required this.accountMasterRecordKey,
required this.identitySecret,
2023-08-01 04:39:50 +00:00
required this.accountRecordInfo,
2023-07-09 04:07:21 +00:00
required this.lastActive});
factory _$_UserLogin.fromJson(Map<String, dynamic> json) =>
_$$_UserLoginFromJson(json);
2023-07-22 01:25:27 +00:00
// Master record key for the user used to index the local accounts table
2023-07-09 04:07:21 +00:00
@override
2023-07-23 03:29:10 +00:00
final Typed<FixedEncodedString43> accountMasterRecordKey;
2023-07-09 04:07:21 +00:00
// The identity secret as unlocked from the local accounts table
@override
2023-07-23 03:29:10 +00:00
final Typed<FixedEncodedString43> identitySecret;
2023-08-01 04:39:50 +00:00
// The account record key, owner key and secret pulled from the identity
@override
final AccountRecordInfo accountRecordInfo;
2023-07-09 04:07:21 +00:00
// The time this login was most recently used
@override
final Timestamp lastActive;
@override
String toString() {
2023-08-01 04:39:50 +00:00
return 'UserLogin(accountMasterRecordKey: $accountMasterRecordKey, identitySecret: $identitySecret, accountRecordInfo: $accountRecordInfo, lastActive: $lastActive)';
2023-07-09 04:07:21 +00:00
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_UserLogin &&
2023-07-23 03:29:10 +00:00
(identical(other.accountMasterRecordKey, accountMasterRecordKey) ||
other.accountMasterRecordKey == accountMasterRecordKey) &&
(identical(other.identitySecret, identitySecret) ||
other.identitySecret == identitySecret) &&
2023-08-01 04:39:50 +00:00
(identical(other.accountRecordInfo, accountRecordInfo) ||
other.accountRecordInfo == accountRecordInfo) &&
2023-07-09 04:07:21 +00:00
(identical(other.lastActive, lastActive) ||
other.lastActive == lastActive));
}
@JsonKey(ignore: true)
@override
2023-08-01 04:39:50 +00:00
int get hashCode => Object.hash(runtimeType, accountMasterRecordKey,
identitySecret, accountRecordInfo, lastActive);
2023-07-09 04:07:21 +00:00
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_UserLoginCopyWith<_$_UserLogin> get copyWith =>
__$$_UserLoginCopyWithImpl<_$_UserLogin>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$_UserLoginToJson(
this,
);
}
}
abstract class _UserLogin implements UserLogin {
const factory _UserLogin(
2023-07-23 03:29:10 +00:00
{required final Typed<FixedEncodedString43> accountMasterRecordKey,
required final Typed<FixedEncodedString43> identitySecret,
2023-08-01 04:39:50 +00:00
required final AccountRecordInfo accountRecordInfo,
2023-07-09 04:07:21 +00:00
required final Timestamp lastActive}) = _$_UserLogin;
factory _UserLogin.fromJson(Map<String, dynamic> json) =
_$_UserLogin.fromJson;
2023-07-22 01:25:27 +00:00
@override // Master record key for the user used to index the local accounts table
2023-07-23 03:29:10 +00:00
Typed<FixedEncodedString43> get accountMasterRecordKey;
2023-07-09 04:07:21 +00:00
@override // The identity secret as unlocked from the local accounts table
2023-07-23 03:29:10 +00:00
Typed<FixedEncodedString43> get identitySecret;
2023-08-01 04:39:50 +00:00
@override // The account record key, owner key and secret pulled from the identity
AccountRecordInfo get accountRecordInfo;
2023-07-09 04:07:21 +00:00
@override // The time this login was most recently used
Timestamp get lastActive;
@override
@JsonKey(ignore: true)
_$$_UserLoginCopyWith<_$_UserLogin> get copyWith =>
throw _privateConstructorUsedError;
}
ActiveLogins _$ActiveLoginsFromJson(Map<String, dynamic> json) {
return _ActiveLogins.fromJson(json);
}
/// @nodoc
mixin _$ActiveLogins {
// The list of current logged in accounts
IList<UserLogin> get userLogins =>
2023-07-22 01:25:27 +00:00
throw _privateConstructorUsedError; // The current selected account indexed by master record key
2023-07-09 04:07:21 +00:00
Typed<FixedEncodedString43>? get activeUserLogin =>
throw _privateConstructorUsedError;
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ActiveLoginsCopyWith<ActiveLogins> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ActiveLoginsCopyWith<$Res> {
factory $ActiveLoginsCopyWith(
ActiveLogins value, $Res Function(ActiveLogins) then) =
_$ActiveLoginsCopyWithImpl<$Res, ActiveLogins>;
@useResult
$Res call(
{IList<UserLogin> userLogins,
Typed<FixedEncodedString43>? activeUserLogin});
}
/// @nodoc
class _$ActiveLoginsCopyWithImpl<$Res, $Val extends ActiveLogins>
implements $ActiveLoginsCopyWith<$Res> {
_$ActiveLoginsCopyWithImpl(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? userLogins = null,
Object? activeUserLogin = freezed,
}) {
return _then(_value.copyWith(
userLogins: null == userLogins
? _value.userLogins
: userLogins // ignore: cast_nullable_to_non_nullable
as IList<UserLogin>,
activeUserLogin: freezed == activeUserLogin
? _value.activeUserLogin
: activeUserLogin // ignore: cast_nullable_to_non_nullable
as Typed<FixedEncodedString43>?,
) as $Val);
}
}
/// @nodoc
abstract class _$$_ActiveLoginsCopyWith<$Res>
implements $ActiveLoginsCopyWith<$Res> {
factory _$$_ActiveLoginsCopyWith(
_$_ActiveLogins value, $Res Function(_$_ActiveLogins) then) =
__$$_ActiveLoginsCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{IList<UserLogin> userLogins,
Typed<FixedEncodedString43>? activeUserLogin});
}
/// @nodoc
class __$$_ActiveLoginsCopyWithImpl<$Res>
extends _$ActiveLoginsCopyWithImpl<$Res, _$_ActiveLogins>
implements _$$_ActiveLoginsCopyWith<$Res> {
__$$_ActiveLoginsCopyWithImpl(
_$_ActiveLogins _value, $Res Function(_$_ActiveLogins) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? userLogins = null,
Object? activeUserLogin = freezed,
}) {
return _then(_$_ActiveLogins(
userLogins: null == userLogins
? _value.userLogins
: userLogins // ignore: cast_nullable_to_non_nullable
as IList<UserLogin>,
activeUserLogin: freezed == activeUserLogin
? _value.activeUserLogin
: activeUserLogin // ignore: cast_nullable_to_non_nullable
as Typed<FixedEncodedString43>?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$_ActiveLogins implements _ActiveLogins {
const _$_ActiveLogins({required this.userLogins, this.activeUserLogin});
factory _$_ActiveLogins.fromJson(Map<String, dynamic> json) =>
_$$_ActiveLoginsFromJson(json);
// The list of current logged in accounts
@override
final IList<UserLogin> userLogins;
2023-07-22 01:25:27 +00:00
// The current selected account indexed by master record key
2023-07-09 04:07:21 +00:00
@override
final Typed<FixedEncodedString43>? activeUserLogin;
@override
String toString() {
return 'ActiveLogins(userLogins: $userLogins, activeUserLogin: $activeUserLogin)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_ActiveLogins &&
const DeepCollectionEquality()
.equals(other.userLogins, userLogins) &&
(identical(other.activeUserLogin, activeUserLogin) ||
other.activeUserLogin == activeUserLogin));
}
@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(runtimeType,
const DeepCollectionEquality().hash(userLogins), activeUserLogin);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_ActiveLoginsCopyWith<_$_ActiveLogins> get copyWith =>
__$$_ActiveLoginsCopyWithImpl<_$_ActiveLogins>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$_ActiveLoginsToJson(
this,
);
}
}
abstract class _ActiveLogins implements ActiveLogins {
const factory _ActiveLogins(
{required final IList<UserLogin> userLogins,
final Typed<FixedEncodedString43>? activeUserLogin}) = _$_ActiveLogins;
factory _ActiveLogins.fromJson(Map<String, dynamic> json) =
_$_ActiveLogins.fromJson;
@override // The list of current logged in accounts
IList<UserLogin> get userLogins;
2023-07-22 01:25:27 +00:00
@override // The current selected account indexed by master record key
2023-07-09 04:07:21 +00:00
Typed<FixedEncodedString43>? get activeUserLogin;
@override
@JsonKey(ignore: true)
_$$_ActiveLoginsCopyWith<_$_ActiveLogins> get copyWith =>
throw _privateConstructorUsedError;
}