| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- // 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.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#adding-getters-and-methods-to-our-models');
- User _$UserFromJson(Map<String, dynamic> json) {
- return _User.fromJson(json);
- }
- /// @nodoc
- mixin _$User {
- String? get country => 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;
- bool? get geographyEea => throw _privateConstructorUsedError;
- int? get memberLevel =>
- throw _privateConstructorUsedError; // 会员等级 1 游客 2 普通用户 3 会员
- String? get account => throw _privateConstructorUsedError; // 用户名
- bool? get activated => throw _privateConstructorUsedError;
- /// Serializes this User to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of User
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $UserCopyWith<User> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $UserCopyWith<$Res> {
- factory $UserCopyWith(User value, $Res Function(User) then) =
- _$UserCopyWithImpl<$Res, User>;
- @useResult
- $Res call(
- {String? country,
- String? userIp,
- String? accessToken,
- String? refreshToken,
- String? accountKey,
- String? accountPassword,
- String? createTime,
- bool? geographyEea,
- int? memberLevel,
- String? account,
- bool? activated});
- }
- /// @nodoc
- class _$UserCopyWithImpl<$Res, $Val extends User>
- implements $UserCopyWith<$Res> {
- _$UserCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of User
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? country = freezed,
- Object? userIp = freezed,
- Object? accessToken = freezed,
- Object? refreshToken = freezed,
- Object? accountKey = freezed,
- Object? accountPassword = freezed,
- Object? createTime = freezed,
- Object? geographyEea = freezed,
- Object? memberLevel = freezed,
- Object? account = freezed,
- Object? activated = freezed,
- }) {
- return _then(_value.copyWith(
- country: freezed == country
- ? _value.country
- : country // ignore: cast_nullable_to_non_nullable
- as String?,
- userIp: freezed == userIp
- ? _value.userIp
- : userIp // ignore: cast_nullable_to_non_nullable
- as String?,
- accessToken: freezed == accessToken
- ? _value.accessToken
- : accessToken // ignore: cast_nullable_to_non_nullable
- as String?,
- refreshToken: freezed == refreshToken
- ? _value.refreshToken
- : refreshToken // ignore: cast_nullable_to_non_nullable
- as String?,
- accountKey: freezed == accountKey
- ? _value.accountKey
- : accountKey // ignore: cast_nullable_to_non_nullable
- as String?,
- accountPassword: freezed == accountPassword
- ? _value.accountPassword
- : accountPassword // ignore: cast_nullable_to_non_nullable
- as String?,
- createTime: freezed == createTime
- ? _value.createTime
- : createTime // ignore: cast_nullable_to_non_nullable
- as String?,
- geographyEea: freezed == geographyEea
- ? _value.geographyEea
- : geographyEea // ignore: cast_nullable_to_non_nullable
- as bool?,
- memberLevel: freezed == memberLevel
- ? _value.memberLevel
- : memberLevel // ignore: cast_nullable_to_non_nullable
- as int?,
- account: freezed == account
- ? _value.account
- : account // ignore: cast_nullable_to_non_nullable
- as String?,
- activated: freezed == activated
- ? _value.activated
- : activated // ignore: cast_nullable_to_non_nullable
- as bool?,
- ) as $Val);
- }
- }
- /// @nodoc
- abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
- factory _$$UserImplCopyWith(
- _$UserImpl value, $Res Function(_$UserImpl) then) =
- __$$UserImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call(
- {String? country,
- String? userIp,
- String? accessToken,
- String? refreshToken,
- String? accountKey,
- String? accountPassword,
- String? createTime,
- bool? geographyEea,
- int? memberLevel,
- String? account,
- bool? activated});
- }
- /// @nodoc
- class __$$UserImplCopyWithImpl<$Res>
- extends _$UserCopyWithImpl<$Res, _$UserImpl>
- implements _$$UserImplCopyWith<$Res> {
- __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then)
- : super(_value, _then);
- /// Create a copy of User
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? country = freezed,
- Object? userIp = freezed,
- Object? accessToken = freezed,
- Object? refreshToken = freezed,
- Object? accountKey = freezed,
- Object? accountPassword = freezed,
- Object? createTime = freezed,
- Object? geographyEea = freezed,
- Object? memberLevel = freezed,
- Object? account = freezed,
- Object? activated = freezed,
- }) {
- return _then(_$UserImpl(
- country: freezed == country
- ? _value.country
- : country // ignore: cast_nullable_to_non_nullable
- as String?,
- userIp: freezed == userIp
- ? _value.userIp
- : userIp // ignore: cast_nullable_to_non_nullable
- as String?,
- accessToken: freezed == accessToken
- ? _value.accessToken
- : accessToken // ignore: cast_nullable_to_non_nullable
- as String?,
- refreshToken: freezed == refreshToken
- ? _value.refreshToken
- : refreshToken // ignore: cast_nullable_to_non_nullable
- as String?,
- accountKey: freezed == accountKey
- ? _value.accountKey
- : accountKey // ignore: cast_nullable_to_non_nullable
- as String?,
- accountPassword: freezed == accountPassword
- ? _value.accountPassword
- : accountPassword // ignore: cast_nullable_to_non_nullable
- as String?,
- createTime: freezed == createTime
- ? _value.createTime
- : createTime // ignore: cast_nullable_to_non_nullable
- as String?,
- geographyEea: freezed == geographyEea
- ? _value.geographyEea
- : geographyEea // ignore: cast_nullable_to_non_nullable
- as bool?,
- memberLevel: freezed == memberLevel
- ? _value.memberLevel
- : memberLevel // ignore: cast_nullable_to_non_nullable
- as int?,
- account: freezed == account
- ? _value.account
- : account // ignore: cast_nullable_to_non_nullable
- as String?,
- activated: freezed == activated
- ? _value.activated
- : activated // ignore: cast_nullable_to_non_nullable
- as bool?,
- ));
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$UserImpl with DiagnosticableTreeMixin implements _User {
- const _$UserImpl(
- {this.country,
- this.userIp,
- this.accessToken,
- this.refreshToken,
- this.accountKey,
- this.accountPassword,
- this.createTime,
- this.geographyEea,
- this.memberLevel,
- this.account,
- this.activated});
- factory _$UserImpl.fromJson(Map<String, dynamic> json) =>
- _$$UserImplFromJson(json);
- @override
- final String? country;
- @override
- final String? userIp;
- @override
- final String? accessToken;
- @override
- final String? refreshToken;
- @override
- final String? accountKey;
- @override
- final String? accountPassword;
- @override
- final String? createTime;
- @override
- final bool? geographyEea;
- @override
- final int? memberLevel;
- // 会员等级 1 游客 2 普通用户 3 会员
- @override
- final String? account;
- // 用户名
- @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)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'User'))
- ..add(DiagnosticsProperty('country', country))
- ..add(DiagnosticsProperty('userIp', userIp))
- ..add(DiagnosticsProperty('accessToken', accessToken))
- ..add(DiagnosticsProperty('refreshToken', refreshToken))
- ..add(DiagnosticsProperty('accountKey', accountKey))
- ..add(DiagnosticsProperty('accountPassword', accountPassword))
- ..add(DiagnosticsProperty('createTime', createTime))
- ..add(DiagnosticsProperty('geographyEea', geographyEea))
- ..add(DiagnosticsProperty('memberLevel', memberLevel))
- ..add(DiagnosticsProperty('account', account))
- ..add(DiagnosticsProperty('activated', activated));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$UserImpl &&
- (identical(other.country, country) || other.country == country) &&
- (identical(other.userIp, userIp) || other.userIp == userIp) &&
- (identical(other.accessToken, accessToken) ||
- other.accessToken == accessToken) &&
- (identical(other.refreshToken, refreshToken) ||
- other.refreshToken == refreshToken) &&
- (identical(other.accountKey, accountKey) ||
- other.accountKey == accountKey) &&
- (identical(other.accountPassword, accountPassword) ||
- other.accountPassword == accountPassword) &&
- (identical(other.createTime, createTime) ||
- other.createTime == createTime) &&
- (identical(other.geographyEea, geographyEea) ||
- other.geographyEea == geographyEea) &&
- (identical(other.memberLevel, memberLevel) ||
- other.memberLevel == memberLevel) &&
- (identical(other.account, account) || other.account == account) &&
- (identical(other.activated, activated) ||
- other.activated == activated));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- country,
- userIp,
- accessToken,
- refreshToken,
- accountKey,
- accountPassword,
- createTime,
- geographyEea,
- memberLevel,
- account,
- activated);
- /// Create a copy of User
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$UserImplCopyWith<_$UserImpl> get copyWith =>
- __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$UserImplToJson(
- this,
- );
- }
- }
- abstract class _User implements User {
- const factory _User(
- {final String? country,
- final String? userIp,
- final String? accessToken,
- final String? refreshToken,
- final String? accountKey,
- final String? accountPassword,
- final String? createTime,
- final bool? geographyEea,
- final int? memberLevel,
- final String? account,
- final bool? activated}) = _$UserImpl;
- factory _User.fromJson(Map<String, dynamic> json) = _$UserImpl.fromJson;
- @override
- String? get country;
- @override
- String? get userIp;
- @override
- String? get accessToken;
- @override
- String? get refreshToken;
- @override
- String? get accountKey;
- @override
- String? get accountPassword;
- @override
- String? get createTime;
- @override
- bool? get geographyEea;
- @override
- int? get memberLevel; // 会员等级 1 游客 2 普通用户 3 会员
- @override
- String? get account; // 用户名
- @override
- bool? get activated;
- /// Create a copy of User
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$UserImplCopyWith<_$UserImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|