|
|
@@ -22,16 +22,24 @@ User _$UserFromJson(Map<String, dynamic> json) {
|
|
|
/// @nodoc
|
|
|
mixin _$User {
|
|
|
String? get country => throw _privateConstructorUsedError;
|
|
|
+ String? get countryName => throw _privateConstructorUsedError;
|
|
|
String? get userIp => throw _privateConstructorUsedError;
|
|
|
String? get accessToken => throw _privateConstructorUsedError;
|
|
|
String? get refreshToken => throw _privateConstructorUsedError;
|
|
|
String? get accountKey => throw _privateConstructorUsedError;
|
|
|
String? get accountPassword => throw _privateConstructorUsedError;
|
|
|
- String? get createTime => throw _privateConstructorUsedError;
|
|
|
+ int? get createTime =>
|
|
|
+ throw _privateConstructorUsedError; // API 返回 int 类型的时间戳
|
|
|
bool? get geographyEea => throw _privateConstructorUsedError;
|
|
|
int? get memberLevel =>
|
|
|
throw _privateConstructorUsedError; // 会员等级 1 游客 2 普通用户 3 会员
|
|
|
- String? get account => throw _privateConstructorUsedError; // 用户名
|
|
|
+ int? get userLevel => throw _privateConstructorUsedError;
|
|
|
+ int? get expireTime => throw _privateConstructorUsedError;
|
|
|
+ int? get remainTime => throw _privateConstructorUsedError;
|
|
|
+ bool? get isExpired => throw _privateConstructorUsedError;
|
|
|
+ bool? get isTestUser => throw _privateConstructorUsedError;
|
|
|
+ bool? get isSubscribeUser => throw _privateConstructorUsedError;
|
|
|
+ Account? get account => throw _privateConstructorUsedError; // API 返回对象类型
|
|
|
bool? get activated => throw _privateConstructorUsedError;
|
|
|
|
|
|
/// Serializes this User to a JSON map.
|
|
|
@@ -50,17 +58,26 @@ abstract class $UserCopyWith<$Res> {
|
|
|
@useResult
|
|
|
$Res call({
|
|
|
String? country,
|
|
|
+ String? countryName,
|
|
|
String? userIp,
|
|
|
String? accessToken,
|
|
|
String? refreshToken,
|
|
|
String? accountKey,
|
|
|
String? accountPassword,
|
|
|
- String? createTime,
|
|
|
+ int? createTime,
|
|
|
bool? geographyEea,
|
|
|
int? memberLevel,
|
|
|
- String? account,
|
|
|
+ int? userLevel,
|
|
|
+ int? expireTime,
|
|
|
+ int? remainTime,
|
|
|
+ bool? isExpired,
|
|
|
+ bool? isTestUser,
|
|
|
+ bool? isSubscribeUser,
|
|
|
+ Account? account,
|
|
|
bool? activated,
|
|
|
});
|
|
|
+
|
|
|
+ $AccountCopyWith<$Res>? get account;
|
|
|
}
|
|
|
|
|
|
/// @nodoc
|
|
|
@@ -79,6 +96,7 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
|
@override
|
|
|
$Res call({
|
|
|
Object? country = freezed,
|
|
|
+ Object? countryName = freezed,
|
|
|
Object? userIp = freezed,
|
|
|
Object? accessToken = freezed,
|
|
|
Object? refreshToken = freezed,
|
|
|
@@ -87,6 +105,12 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
|
Object? createTime = freezed,
|
|
|
Object? geographyEea = freezed,
|
|
|
Object? memberLevel = freezed,
|
|
|
+ Object? userLevel = freezed,
|
|
|
+ Object? expireTime = freezed,
|
|
|
+ Object? remainTime = freezed,
|
|
|
+ Object? isExpired = freezed,
|
|
|
+ Object? isTestUser = freezed,
|
|
|
+ Object? isSubscribeUser = freezed,
|
|
|
Object? account = freezed,
|
|
|
Object? activated = freezed,
|
|
|
}) {
|
|
|
@@ -96,6 +120,10 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
|
? _value.country
|
|
|
: country // ignore: cast_nullable_to_non_nullable
|
|
|
as String?,
|
|
|
+ countryName: freezed == countryName
|
|
|
+ ? _value.countryName
|
|
|
+ : countryName // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
userIp: freezed == userIp
|
|
|
? _value.userIp
|
|
|
: userIp // ignore: cast_nullable_to_non_nullable
|
|
|
@@ -119,7 +147,7 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
|
createTime: freezed == createTime
|
|
|
? _value.createTime
|
|
|
: createTime // ignore: cast_nullable_to_non_nullable
|
|
|
- as String?,
|
|
|
+ as int?,
|
|
|
geographyEea: freezed == geographyEea
|
|
|
? _value.geographyEea
|
|
|
: geographyEea // ignore: cast_nullable_to_non_nullable
|
|
|
@@ -128,10 +156,34 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
|
? _value.memberLevel
|
|
|
: memberLevel // ignore: cast_nullable_to_non_nullable
|
|
|
as int?,
|
|
|
+ userLevel: freezed == userLevel
|
|
|
+ ? _value.userLevel
|
|
|
+ : userLevel // ignore: cast_nullable_to_non_nullable
|
|
|
+ as int?,
|
|
|
+ expireTime: freezed == expireTime
|
|
|
+ ? _value.expireTime
|
|
|
+ : expireTime // ignore: cast_nullable_to_non_nullable
|
|
|
+ as int?,
|
|
|
+ remainTime: freezed == remainTime
|
|
|
+ ? _value.remainTime
|
|
|
+ : remainTime // ignore: cast_nullable_to_non_nullable
|
|
|
+ as int?,
|
|
|
+ isExpired: freezed == isExpired
|
|
|
+ ? _value.isExpired
|
|
|
+ : isExpired // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool?,
|
|
|
+ isTestUser: freezed == isTestUser
|
|
|
+ ? _value.isTestUser
|
|
|
+ : isTestUser // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool?,
|
|
|
+ isSubscribeUser: freezed == isSubscribeUser
|
|
|
+ ? _value.isSubscribeUser
|
|
|
+ : isSubscribeUser // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool?,
|
|
|
account: freezed == account
|
|
|
? _value.account
|
|
|
: account // ignore: cast_nullable_to_non_nullable
|
|
|
- as String?,
|
|
|
+ as Account?,
|
|
|
activated: freezed == activated
|
|
|
? _value.activated
|
|
|
: activated // ignore: cast_nullable_to_non_nullable
|
|
|
@@ -140,6 +192,20 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
|
as $Val,
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ /// Create a copy of User
|
|
|
+ /// with the given fields replaced by the non-null parameter values.
|
|
|
+ @override
|
|
|
+ @pragma('vm:prefer-inline')
|
|
|
+ $AccountCopyWith<$Res>? get account {
|
|
|
+ if (_value.account == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $AccountCopyWith<$Res>(_value.account!, (value) {
|
|
|
+ return _then(_value.copyWith(account: value) as $Val);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/// @nodoc
|
|
|
@@ -152,17 +218,27 @@ abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
|
|
|
@useResult
|
|
|
$Res call({
|
|
|
String? country,
|
|
|
+ String? countryName,
|
|
|
String? userIp,
|
|
|
String? accessToken,
|
|
|
String? refreshToken,
|
|
|
String? accountKey,
|
|
|
String? accountPassword,
|
|
|
- String? createTime,
|
|
|
+ int? createTime,
|
|
|
bool? geographyEea,
|
|
|
int? memberLevel,
|
|
|
- String? account,
|
|
|
+ int? userLevel,
|
|
|
+ int? expireTime,
|
|
|
+ int? remainTime,
|
|
|
+ bool? isExpired,
|
|
|
+ bool? isTestUser,
|
|
|
+ bool? isSubscribeUser,
|
|
|
+ Account? account,
|
|
|
bool? activated,
|
|
|
});
|
|
|
+
|
|
|
+ @override
|
|
|
+ $AccountCopyWith<$Res>? get account;
|
|
|
}
|
|
|
|
|
|
/// @nodoc
|
|
|
@@ -178,6 +254,7 @@ class __$$UserImplCopyWithImpl<$Res>
|
|
|
@override
|
|
|
$Res call({
|
|
|
Object? country = freezed,
|
|
|
+ Object? countryName = freezed,
|
|
|
Object? userIp = freezed,
|
|
|
Object? accessToken = freezed,
|
|
|
Object? refreshToken = freezed,
|
|
|
@@ -186,6 +263,12 @@ class __$$UserImplCopyWithImpl<$Res>
|
|
|
Object? createTime = freezed,
|
|
|
Object? geographyEea = freezed,
|
|
|
Object? memberLevel = freezed,
|
|
|
+ Object? userLevel = freezed,
|
|
|
+ Object? expireTime = freezed,
|
|
|
+ Object? remainTime = freezed,
|
|
|
+ Object? isExpired = freezed,
|
|
|
+ Object? isTestUser = freezed,
|
|
|
+ Object? isSubscribeUser = freezed,
|
|
|
Object? account = freezed,
|
|
|
Object? activated = freezed,
|
|
|
}) {
|
|
|
@@ -195,6 +278,10 @@ class __$$UserImplCopyWithImpl<$Res>
|
|
|
? _value.country
|
|
|
: country // ignore: cast_nullable_to_non_nullable
|
|
|
as String?,
|
|
|
+ countryName: freezed == countryName
|
|
|
+ ? _value.countryName
|
|
|
+ : countryName // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
userIp: freezed == userIp
|
|
|
? _value.userIp
|
|
|
: userIp // ignore: cast_nullable_to_non_nullable
|
|
|
@@ -218,7 +305,7 @@ class __$$UserImplCopyWithImpl<$Res>
|
|
|
createTime: freezed == createTime
|
|
|
? _value.createTime
|
|
|
: createTime // ignore: cast_nullable_to_non_nullable
|
|
|
- as String?,
|
|
|
+ as int?,
|
|
|
geographyEea: freezed == geographyEea
|
|
|
? _value.geographyEea
|
|
|
: geographyEea // ignore: cast_nullable_to_non_nullable
|
|
|
@@ -227,10 +314,34 @@ class __$$UserImplCopyWithImpl<$Res>
|
|
|
? _value.memberLevel
|
|
|
: memberLevel // ignore: cast_nullable_to_non_nullable
|
|
|
as int?,
|
|
|
+ userLevel: freezed == userLevel
|
|
|
+ ? _value.userLevel
|
|
|
+ : userLevel // ignore: cast_nullable_to_non_nullable
|
|
|
+ as int?,
|
|
|
+ expireTime: freezed == expireTime
|
|
|
+ ? _value.expireTime
|
|
|
+ : expireTime // ignore: cast_nullable_to_non_nullable
|
|
|
+ as int?,
|
|
|
+ remainTime: freezed == remainTime
|
|
|
+ ? _value.remainTime
|
|
|
+ : remainTime // ignore: cast_nullable_to_non_nullable
|
|
|
+ as int?,
|
|
|
+ isExpired: freezed == isExpired
|
|
|
+ ? _value.isExpired
|
|
|
+ : isExpired // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool?,
|
|
|
+ isTestUser: freezed == isTestUser
|
|
|
+ ? _value.isTestUser
|
|
|
+ : isTestUser // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool?,
|
|
|
+ isSubscribeUser: freezed == isSubscribeUser
|
|
|
+ ? _value.isSubscribeUser
|
|
|
+ : isSubscribeUser // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool?,
|
|
|
account: freezed == account
|
|
|
? _value.account
|
|
|
: account // ignore: cast_nullable_to_non_nullable
|
|
|
- as String?,
|
|
|
+ as Account?,
|
|
|
activated: freezed == activated
|
|
|
? _value.activated
|
|
|
: activated // ignore: cast_nullable_to_non_nullable
|
|
|
@@ -245,6 +356,7 @@ class __$$UserImplCopyWithImpl<$Res>
|
|
|
class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
const _$UserImpl({
|
|
|
this.country,
|
|
|
+ this.countryName,
|
|
|
this.userIp,
|
|
|
this.accessToken,
|
|
|
this.refreshToken,
|
|
|
@@ -253,6 +365,12 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
this.createTime,
|
|
|
this.geographyEea,
|
|
|
this.memberLevel,
|
|
|
+ this.userLevel,
|
|
|
+ this.expireTime,
|
|
|
+ this.remainTime,
|
|
|
+ this.isExpired,
|
|
|
+ this.isTestUser,
|
|
|
+ this.isSubscribeUser,
|
|
|
this.account,
|
|
|
this.activated,
|
|
|
});
|
|
|
@@ -263,6 +381,8 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
@override
|
|
|
final String? country;
|
|
|
@override
|
|
|
+ final String? countryName;
|
|
|
+ @override
|
|
|
final String? userIp;
|
|
|
@override
|
|
|
final String? accessToken;
|
|
|
@@ -273,21 +393,34 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
@override
|
|
|
final String? accountPassword;
|
|
|
@override
|
|
|
- final String? createTime;
|
|
|
+ final int? createTime;
|
|
|
+ // API 返回 int 类型的时间戳
|
|
|
@override
|
|
|
final bool? geographyEea;
|
|
|
@override
|
|
|
final int? memberLevel;
|
|
|
// 会员等级 1 游客 2 普通用户 3 会员
|
|
|
@override
|
|
|
- final String? account;
|
|
|
- // 用户名
|
|
|
+ final int? userLevel;
|
|
|
+ @override
|
|
|
+ final int? expireTime;
|
|
|
+ @override
|
|
|
+ final int? remainTime;
|
|
|
+ @override
|
|
|
+ final bool? isExpired;
|
|
|
+ @override
|
|
|
+ final bool? isTestUser;
|
|
|
+ @override
|
|
|
+ final bool? isSubscribeUser;
|
|
|
+ @override
|
|
|
+ final Account? account;
|
|
|
+ // API 返回对象类型
|
|
|
@override
|
|
|
final bool? activated;
|
|
|
|
|
|
@override
|
|
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
|
|
- return 'User(country: $country, userIp: $userIp, accessToken: $accessToken, refreshToken: $refreshToken, accountKey: $accountKey, accountPassword: $accountPassword, createTime: $createTime, geographyEea: $geographyEea, memberLevel: $memberLevel, account: $account, activated: $activated)';
|
|
|
+ return 'User(country: $country, countryName: $countryName, userIp: $userIp, accessToken: $accessToken, refreshToken: $refreshToken, accountKey: $accountKey, accountPassword: $accountPassword, createTime: $createTime, geographyEea: $geographyEea, memberLevel: $memberLevel, userLevel: $userLevel, expireTime: $expireTime, remainTime: $remainTime, isExpired: $isExpired, isTestUser: $isTestUser, isSubscribeUser: $isSubscribeUser, account: $account, activated: $activated)';
|
|
|
}
|
|
|
|
|
|
@override
|
|
|
@@ -296,6 +429,7 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
properties
|
|
|
..add(DiagnosticsProperty('type', 'User'))
|
|
|
..add(DiagnosticsProperty('country', country))
|
|
|
+ ..add(DiagnosticsProperty('countryName', countryName))
|
|
|
..add(DiagnosticsProperty('userIp', userIp))
|
|
|
..add(DiagnosticsProperty('accessToken', accessToken))
|
|
|
..add(DiagnosticsProperty('refreshToken', refreshToken))
|
|
|
@@ -304,6 +438,12 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
..add(DiagnosticsProperty('createTime', createTime))
|
|
|
..add(DiagnosticsProperty('geographyEea', geographyEea))
|
|
|
..add(DiagnosticsProperty('memberLevel', memberLevel))
|
|
|
+ ..add(DiagnosticsProperty('userLevel', userLevel))
|
|
|
+ ..add(DiagnosticsProperty('expireTime', expireTime))
|
|
|
+ ..add(DiagnosticsProperty('remainTime', remainTime))
|
|
|
+ ..add(DiagnosticsProperty('isExpired', isExpired))
|
|
|
+ ..add(DiagnosticsProperty('isTestUser', isTestUser))
|
|
|
+ ..add(DiagnosticsProperty('isSubscribeUser', isSubscribeUser))
|
|
|
..add(DiagnosticsProperty('account', account))
|
|
|
..add(DiagnosticsProperty('activated', activated));
|
|
|
}
|
|
|
@@ -314,6 +454,8 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
other is _$UserImpl &&
|
|
|
(identical(other.country, country) || other.country == country) &&
|
|
|
+ (identical(other.countryName, countryName) ||
|
|
|
+ other.countryName == countryName) &&
|
|
|
(identical(other.userIp, userIp) || other.userIp == userIp) &&
|
|
|
(identical(other.accessToken, accessToken) ||
|
|
|
other.accessToken == accessToken) &&
|
|
|
@@ -329,6 +471,18 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
other.geographyEea == geographyEea) &&
|
|
|
(identical(other.memberLevel, memberLevel) ||
|
|
|
other.memberLevel == memberLevel) &&
|
|
|
+ (identical(other.userLevel, userLevel) ||
|
|
|
+ other.userLevel == userLevel) &&
|
|
|
+ (identical(other.expireTime, expireTime) ||
|
|
|
+ other.expireTime == expireTime) &&
|
|
|
+ (identical(other.remainTime, remainTime) ||
|
|
|
+ other.remainTime == remainTime) &&
|
|
|
+ (identical(other.isExpired, isExpired) ||
|
|
|
+ other.isExpired == isExpired) &&
|
|
|
+ (identical(other.isTestUser, isTestUser) ||
|
|
|
+ other.isTestUser == isTestUser) &&
|
|
|
+ (identical(other.isSubscribeUser, isSubscribeUser) ||
|
|
|
+ other.isSubscribeUser == isSubscribeUser) &&
|
|
|
(identical(other.account, account) || other.account == account) &&
|
|
|
(identical(other.activated, activated) ||
|
|
|
other.activated == activated));
|
|
|
@@ -339,6 +493,7 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
int get hashCode => Object.hash(
|
|
|
runtimeType,
|
|
|
country,
|
|
|
+ countryName,
|
|
|
userIp,
|
|
|
accessToken,
|
|
|
refreshToken,
|
|
|
@@ -347,6 +502,12 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
createTime,
|
|
|
geographyEea,
|
|
|
memberLevel,
|
|
|
+ userLevel,
|
|
|
+ expireTime,
|
|
|
+ remainTime,
|
|
|
+ isExpired,
|
|
|
+ isTestUser,
|
|
|
+ isSubscribeUser,
|
|
|
account,
|
|
|
activated,
|
|
|
);
|
|
|
@@ -368,15 +529,22 @@ class _$UserImpl with DiagnosticableTreeMixin implements _User {
|
|
|
abstract class _User implements User {
|
|
|
const factory _User({
|
|
|
final String? country,
|
|
|
+ final String? countryName,
|
|
|
final String? userIp,
|
|
|
final String? accessToken,
|
|
|
final String? refreshToken,
|
|
|
final String? accountKey,
|
|
|
final String? accountPassword,
|
|
|
- final String? createTime,
|
|
|
+ final int? createTime,
|
|
|
final bool? geographyEea,
|
|
|
final int? memberLevel,
|
|
|
- final String? account,
|
|
|
+ final int? userLevel,
|
|
|
+ final int? expireTime,
|
|
|
+ final int? remainTime,
|
|
|
+ final bool? isExpired,
|
|
|
+ final bool? isTestUser,
|
|
|
+ final bool? isSubscribeUser,
|
|
|
+ final Account? account,
|
|
|
final bool? activated,
|
|
|
}) = _$UserImpl;
|
|
|
|
|
|
@@ -385,6 +553,8 @@ abstract class _User implements User {
|
|
|
@override
|
|
|
String? get country;
|
|
|
@override
|
|
|
+ String? get countryName;
|
|
|
+ @override
|
|
|
String? get userIp;
|
|
|
@override
|
|
|
String? get accessToken;
|
|
|
@@ -395,13 +565,25 @@ abstract class _User implements User {
|
|
|
@override
|
|
|
String? get accountPassword;
|
|
|
@override
|
|
|
- String? get createTime;
|
|
|
+ int? get createTime; // API 返回 int 类型的时间戳
|
|
|
@override
|
|
|
bool? get geographyEea;
|
|
|
@override
|
|
|
int? get memberLevel; // 会员等级 1 游客 2 普通用户 3 会员
|
|
|
@override
|
|
|
- String? get account; // 用户名
|
|
|
+ int? get userLevel;
|
|
|
+ @override
|
|
|
+ int? get expireTime;
|
|
|
+ @override
|
|
|
+ int? get remainTime;
|
|
|
+ @override
|
|
|
+ bool? get isExpired;
|
|
|
+ @override
|
|
|
+ bool? get isTestUser;
|
|
|
+ @override
|
|
|
+ bool? get isSubscribeUser;
|
|
|
+ @override
|
|
|
+ Account? get account; // API 返回对象类型
|
|
|
@override
|
|
|
bool? get activated;
|
|
|
|
|
|
@@ -412,3 +594,305 @@ abstract class _User implements User {
|
|
|
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
|
|
|
throw _privateConstructorUsedError;
|
|
|
}
|
|
|
+
|
|
|
+Account _$AccountFromJson(Map<String, dynamic> json) {
|
|
|
+ return _Account.fromJson(json);
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+mixin _$Account {
|
|
|
+ String? get username => throw _privateConstructorUsedError;
|
|
|
+ String? get phone => throw _privateConstructorUsedError;
|
|
|
+ String? get email => throw _privateConstructorUsedError;
|
|
|
+ String? get wechat => throw _privateConstructorUsedError;
|
|
|
+ String? get qq => throw _privateConstructorUsedError;
|
|
|
+ String? get google => throw _privateConstructorUsedError;
|
|
|
+ String? get apple => throw _privateConstructorUsedError;
|
|
|
+
|
|
|
+ /// Serializes this Account to a JSON map.
|
|
|
+ Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
+
|
|
|
+ /// Create a copy of Account
|
|
|
+ /// with the given fields replaced by the non-null parameter values.
|
|
|
+ @JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
+ $AccountCopyWith<Account> get copyWith => throw _privateConstructorUsedError;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class $AccountCopyWith<$Res> {
|
|
|
+ factory $AccountCopyWith(Account value, $Res Function(Account) then) =
|
|
|
+ _$AccountCopyWithImpl<$Res, Account>;
|
|
|
+ @useResult
|
|
|
+ $Res call({
|
|
|
+ String? username,
|
|
|
+ String? phone,
|
|
|
+ String? email,
|
|
|
+ String? wechat,
|
|
|
+ String? qq,
|
|
|
+ String? google,
|
|
|
+ String? apple,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$AccountCopyWithImpl<$Res, $Val extends Account>
|
|
|
+ implements $AccountCopyWith<$Res> {
|
|
|
+ _$AccountCopyWithImpl(this._value, this._then);
|
|
|
+
|
|
|
+ // ignore: unused_field
|
|
|
+ final $Val _value;
|
|
|
+ // ignore: unused_field
|
|
|
+ final $Res Function($Val) _then;
|
|
|
+
|
|
|
+ /// Create a copy of Account
|
|
|
+ /// with the given fields replaced by the non-null parameter values.
|
|
|
+ @pragma('vm:prefer-inline')
|
|
|
+ @override
|
|
|
+ $Res call({
|
|
|
+ Object? username = freezed,
|
|
|
+ Object? phone = freezed,
|
|
|
+ Object? email = freezed,
|
|
|
+ Object? wechat = freezed,
|
|
|
+ Object? qq = freezed,
|
|
|
+ Object? google = freezed,
|
|
|
+ Object? apple = freezed,
|
|
|
+ }) {
|
|
|
+ return _then(
|
|
|
+ _value.copyWith(
|
|
|
+ username: freezed == username
|
|
|
+ ? _value.username
|
|
|
+ : username // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ phone: freezed == phone
|
|
|
+ ? _value.phone
|
|
|
+ : phone // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ email: freezed == email
|
|
|
+ ? _value.email
|
|
|
+ : email // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ wechat: freezed == wechat
|
|
|
+ ? _value.wechat
|
|
|
+ : wechat // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ qq: freezed == qq
|
|
|
+ ? _value.qq
|
|
|
+ : qq // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ google: freezed == google
|
|
|
+ ? _value.google
|
|
|
+ : google // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ apple: freezed == apple
|
|
|
+ ? _value.apple
|
|
|
+ : apple // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ )
|
|
|
+ as $Val,
|
|
|
+ );
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class _$$AccountImplCopyWith<$Res> implements $AccountCopyWith<$Res> {
|
|
|
+ factory _$$AccountImplCopyWith(
|
|
|
+ _$AccountImpl value,
|
|
|
+ $Res Function(_$AccountImpl) then,
|
|
|
+ ) = __$$AccountImplCopyWithImpl<$Res>;
|
|
|
+ @override
|
|
|
+ @useResult
|
|
|
+ $Res call({
|
|
|
+ String? username,
|
|
|
+ String? phone,
|
|
|
+ String? email,
|
|
|
+ String? wechat,
|
|
|
+ String? qq,
|
|
|
+ String? google,
|
|
|
+ String? apple,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class __$$AccountImplCopyWithImpl<$Res>
|
|
|
+ extends _$AccountCopyWithImpl<$Res, _$AccountImpl>
|
|
|
+ implements _$$AccountImplCopyWith<$Res> {
|
|
|
+ __$$AccountImplCopyWithImpl(
|
|
|
+ _$AccountImpl _value,
|
|
|
+ $Res Function(_$AccountImpl) _then,
|
|
|
+ ) : super(_value, _then);
|
|
|
+
|
|
|
+ /// Create a copy of Account
|
|
|
+ /// with the given fields replaced by the non-null parameter values.
|
|
|
+ @pragma('vm:prefer-inline')
|
|
|
+ @override
|
|
|
+ $Res call({
|
|
|
+ Object? username = freezed,
|
|
|
+ Object? phone = freezed,
|
|
|
+ Object? email = freezed,
|
|
|
+ Object? wechat = freezed,
|
|
|
+ Object? qq = freezed,
|
|
|
+ Object? google = freezed,
|
|
|
+ Object? apple = freezed,
|
|
|
+ }) {
|
|
|
+ return _then(
|
|
|
+ _$AccountImpl(
|
|
|
+ username: freezed == username
|
|
|
+ ? _value.username
|
|
|
+ : username // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ phone: freezed == phone
|
|
|
+ ? _value.phone
|
|
|
+ : phone // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ email: freezed == email
|
|
|
+ ? _value.email
|
|
|
+ : email // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ wechat: freezed == wechat
|
|
|
+ ? _value.wechat
|
|
|
+ : wechat // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ qq: freezed == qq
|
|
|
+ ? _value.qq
|
|
|
+ : qq // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ google: freezed == google
|
|
|
+ ? _value.google
|
|
|
+ : google // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ apple: freezed == apple
|
|
|
+ ? _value.apple
|
|
|
+ : apple // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+@JsonSerializable()
|
|
|
+class _$AccountImpl with DiagnosticableTreeMixin implements _Account {
|
|
|
+ const _$AccountImpl({
|
|
|
+ this.username,
|
|
|
+ this.phone,
|
|
|
+ this.email,
|
|
|
+ this.wechat,
|
|
|
+ this.qq,
|
|
|
+ this.google,
|
|
|
+ this.apple,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory _$AccountImpl.fromJson(Map<String, dynamic> json) =>
|
|
|
+ _$$AccountImplFromJson(json);
|
|
|
+
|
|
|
+ @override
|
|
|
+ final String? username;
|
|
|
+ @override
|
|
|
+ final String? phone;
|
|
|
+ @override
|
|
|
+ final String? email;
|
|
|
+ @override
|
|
|
+ final String? wechat;
|
|
|
+ @override
|
|
|
+ final String? qq;
|
|
|
+ @override
|
|
|
+ final String? google;
|
|
|
+ @override
|
|
|
+ final String? apple;
|
|
|
+
|
|
|
+ @override
|
|
|
+ String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
|
|
+ return 'Account(username: $username, phone: $phone, email: $email, wechat: $wechat, qq: $qq, google: $google, apple: $apple)';
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
|
|
+ super.debugFillProperties(properties);
|
|
|
+ properties
|
|
|
+ ..add(DiagnosticsProperty('type', 'Account'))
|
|
|
+ ..add(DiagnosticsProperty('username', username))
|
|
|
+ ..add(DiagnosticsProperty('phone', phone))
|
|
|
+ ..add(DiagnosticsProperty('email', email))
|
|
|
+ ..add(DiagnosticsProperty('wechat', wechat))
|
|
|
+ ..add(DiagnosticsProperty('qq', qq))
|
|
|
+ ..add(DiagnosticsProperty('google', google))
|
|
|
+ ..add(DiagnosticsProperty('apple', apple));
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ bool operator ==(Object other) {
|
|
|
+ return identical(this, other) ||
|
|
|
+ (other.runtimeType == runtimeType &&
|
|
|
+ other is _$AccountImpl &&
|
|
|
+ (identical(other.username, username) ||
|
|
|
+ other.username == username) &&
|
|
|
+ (identical(other.phone, phone) || other.phone == phone) &&
|
|
|
+ (identical(other.email, email) || other.email == email) &&
|
|
|
+ (identical(other.wechat, wechat) || other.wechat == wechat) &&
|
|
|
+ (identical(other.qq, qq) || other.qq == qq) &&
|
|
|
+ (identical(other.google, google) || other.google == google) &&
|
|
|
+ (identical(other.apple, apple) || other.apple == apple));
|
|
|
+ }
|
|
|
+
|
|
|
+ @JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
+ @override
|
|
|
+ int get hashCode => Object.hash(
|
|
|
+ runtimeType,
|
|
|
+ username,
|
|
|
+ phone,
|
|
|
+ email,
|
|
|
+ wechat,
|
|
|
+ qq,
|
|
|
+ google,
|
|
|
+ apple,
|
|
|
+ );
|
|
|
+
|
|
|
+ /// Create a copy of Account
|
|
|
+ /// with the given fields replaced by the non-null parameter values.
|
|
|
+ @JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
+ @override
|
|
|
+ @pragma('vm:prefer-inline')
|
|
|
+ _$$AccountImplCopyWith<_$AccountImpl> get copyWith =>
|
|
|
+ __$$AccountImplCopyWithImpl<_$AccountImpl>(this, _$identity);
|
|
|
+
|
|
|
+ @override
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ return _$$AccountImplToJson(this);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+abstract class _Account implements Account {
|
|
|
+ const factory _Account({
|
|
|
+ final String? username,
|
|
|
+ final String? phone,
|
|
|
+ final String? email,
|
|
|
+ final String? wechat,
|
|
|
+ final String? qq,
|
|
|
+ final String? google,
|
|
|
+ final String? apple,
|
|
|
+ }) = _$AccountImpl;
|
|
|
+
|
|
|
+ factory _Account.fromJson(Map<String, dynamic> json) = _$AccountImpl.fromJson;
|
|
|
+
|
|
|
+ @override
|
|
|
+ String? get username;
|
|
|
+ @override
|
|
|
+ String? get phone;
|
|
|
+ @override
|
|
|
+ String? get email;
|
|
|
+ @override
|
|
|
+ String? get wechat;
|
|
|
+ @override
|
|
|
+ String? get qq;
|
|
|
+ @override
|
|
|
+ String? get google;
|
|
|
+ @override
|
|
|
+ String? get apple;
|
|
|
+
|
|
|
+ /// Create a copy of Account
|
|
|
+ /// with the given fields replaced by the non-null parameter values.
|
|
|
+ @override
|
|
|
+ @JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
+ _$$AccountImplCopyWith<_$AccountImpl> get copyWith =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+}
|