user.freezed.dart 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. // coverage:ignore-file
  2. // GENERATED CODE - DO NOT MODIFY BY HAND
  3. // ignore_for_file: type=lint
  4. // 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
  5. part of 'user.dart';
  6. // **************************************************************************
  7. // FreezedGenerator
  8. // **************************************************************************
  9. T _$identity<T>(T value) => value;
  10. final _privateConstructorUsedError = UnsupportedError(
  11. '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',
  12. );
  13. User _$UserFromJson(Map<String, dynamic> json) {
  14. return _User.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$User {
  18. String? get country => throw _privateConstructorUsedError;
  19. String? get countryName => throw _privateConstructorUsedError;
  20. String? get userIp => throw _privateConstructorUsedError;
  21. String? get accessToken => throw _privateConstructorUsedError;
  22. String? get refreshToken => throw _privateConstructorUsedError;
  23. String? get accountKey => throw _privateConstructorUsedError;
  24. String? get accountPassword => throw _privateConstructorUsedError;
  25. int? get createTime =>
  26. throw _privateConstructorUsedError; // API 返回 int 类型的时间戳
  27. bool? get geographyEea => throw _privateConstructorUsedError;
  28. int? get memberLevel =>
  29. throw _privateConstructorUsedError; // 会员等级 1 游客 2 普通用户 3 会员
  30. int? get userLevel => throw _privateConstructorUsedError;
  31. int? get expireTime => throw _privateConstructorUsedError;
  32. int? get remainTime => throw _privateConstructorUsedError;
  33. bool? get isExpired => throw _privateConstructorUsedError;
  34. bool? get isTestUser => throw _privateConstructorUsedError;
  35. bool? get isSubscribeUser => throw _privateConstructorUsedError;
  36. Account? get account => throw _privateConstructorUsedError; // API 返回对象类型
  37. ChannelPlan? get planInfo => throw _privateConstructorUsedError;
  38. bool? get activated => throw _privateConstructorUsedError;
  39. /// Serializes this User to a JSON map.
  40. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  41. /// Create a copy of User
  42. /// with the given fields replaced by the non-null parameter values.
  43. @JsonKey(includeFromJson: false, includeToJson: false)
  44. $UserCopyWith<User> get copyWith => throw _privateConstructorUsedError;
  45. }
  46. /// @nodoc
  47. abstract class $UserCopyWith<$Res> {
  48. factory $UserCopyWith(User value, $Res Function(User) then) =
  49. _$UserCopyWithImpl<$Res, User>;
  50. @useResult
  51. $Res call({
  52. String? country,
  53. String? countryName,
  54. String? userIp,
  55. String? accessToken,
  56. String? refreshToken,
  57. String? accountKey,
  58. String? accountPassword,
  59. int? createTime,
  60. bool? geographyEea,
  61. int? memberLevel,
  62. int? userLevel,
  63. int? expireTime,
  64. int? remainTime,
  65. bool? isExpired,
  66. bool? isTestUser,
  67. bool? isSubscribeUser,
  68. Account? account,
  69. ChannelPlan? planInfo,
  70. bool? activated,
  71. });
  72. $AccountCopyWith<$Res>? get account;
  73. $ChannelPlanCopyWith<$Res>? get planInfo;
  74. }
  75. /// @nodoc
  76. class _$UserCopyWithImpl<$Res, $Val extends User>
  77. implements $UserCopyWith<$Res> {
  78. _$UserCopyWithImpl(this._value, this._then);
  79. // ignore: unused_field
  80. final $Val _value;
  81. // ignore: unused_field
  82. final $Res Function($Val) _then;
  83. /// Create a copy of User
  84. /// with the given fields replaced by the non-null parameter values.
  85. @pragma('vm:prefer-inline')
  86. @override
  87. $Res call({
  88. Object? country = freezed,
  89. Object? countryName = freezed,
  90. Object? userIp = freezed,
  91. Object? accessToken = freezed,
  92. Object? refreshToken = freezed,
  93. Object? accountKey = freezed,
  94. Object? accountPassword = freezed,
  95. Object? createTime = freezed,
  96. Object? geographyEea = freezed,
  97. Object? memberLevel = freezed,
  98. Object? userLevel = freezed,
  99. Object? expireTime = freezed,
  100. Object? remainTime = freezed,
  101. Object? isExpired = freezed,
  102. Object? isTestUser = freezed,
  103. Object? isSubscribeUser = freezed,
  104. Object? account = freezed,
  105. Object? planInfo = freezed,
  106. Object? activated = freezed,
  107. }) {
  108. return _then(
  109. _value.copyWith(
  110. country: freezed == country
  111. ? _value.country
  112. : country // ignore: cast_nullable_to_non_nullable
  113. as String?,
  114. countryName: freezed == countryName
  115. ? _value.countryName
  116. : countryName // ignore: cast_nullable_to_non_nullable
  117. as String?,
  118. userIp: freezed == userIp
  119. ? _value.userIp
  120. : userIp // ignore: cast_nullable_to_non_nullable
  121. as String?,
  122. accessToken: freezed == accessToken
  123. ? _value.accessToken
  124. : accessToken // ignore: cast_nullable_to_non_nullable
  125. as String?,
  126. refreshToken: freezed == refreshToken
  127. ? _value.refreshToken
  128. : refreshToken // ignore: cast_nullable_to_non_nullable
  129. as String?,
  130. accountKey: freezed == accountKey
  131. ? _value.accountKey
  132. : accountKey // ignore: cast_nullable_to_non_nullable
  133. as String?,
  134. accountPassword: freezed == accountPassword
  135. ? _value.accountPassword
  136. : accountPassword // ignore: cast_nullable_to_non_nullable
  137. as String?,
  138. createTime: freezed == createTime
  139. ? _value.createTime
  140. : createTime // ignore: cast_nullable_to_non_nullable
  141. as int?,
  142. geographyEea: freezed == geographyEea
  143. ? _value.geographyEea
  144. : geographyEea // ignore: cast_nullable_to_non_nullable
  145. as bool?,
  146. memberLevel: freezed == memberLevel
  147. ? _value.memberLevel
  148. : memberLevel // ignore: cast_nullable_to_non_nullable
  149. as int?,
  150. userLevel: freezed == userLevel
  151. ? _value.userLevel
  152. : userLevel // ignore: cast_nullable_to_non_nullable
  153. as int?,
  154. expireTime: freezed == expireTime
  155. ? _value.expireTime
  156. : expireTime // ignore: cast_nullable_to_non_nullable
  157. as int?,
  158. remainTime: freezed == remainTime
  159. ? _value.remainTime
  160. : remainTime // ignore: cast_nullable_to_non_nullable
  161. as int?,
  162. isExpired: freezed == isExpired
  163. ? _value.isExpired
  164. : isExpired // ignore: cast_nullable_to_non_nullable
  165. as bool?,
  166. isTestUser: freezed == isTestUser
  167. ? _value.isTestUser
  168. : isTestUser // ignore: cast_nullable_to_non_nullable
  169. as bool?,
  170. isSubscribeUser: freezed == isSubscribeUser
  171. ? _value.isSubscribeUser
  172. : isSubscribeUser // ignore: cast_nullable_to_non_nullable
  173. as bool?,
  174. account: freezed == account
  175. ? _value.account
  176. : account // ignore: cast_nullable_to_non_nullable
  177. as Account?,
  178. planInfo: freezed == planInfo
  179. ? _value.planInfo
  180. : planInfo // ignore: cast_nullable_to_non_nullable
  181. as ChannelPlan?,
  182. activated: freezed == activated
  183. ? _value.activated
  184. : activated // ignore: cast_nullable_to_non_nullable
  185. as bool?,
  186. )
  187. as $Val,
  188. );
  189. }
  190. /// Create a copy of User
  191. /// with the given fields replaced by the non-null parameter values.
  192. @override
  193. @pragma('vm:prefer-inline')
  194. $AccountCopyWith<$Res>? get account {
  195. if (_value.account == null) {
  196. return null;
  197. }
  198. return $AccountCopyWith<$Res>(_value.account!, (value) {
  199. return _then(_value.copyWith(account: value) as $Val);
  200. });
  201. }
  202. /// Create a copy of User
  203. /// with the given fields replaced by the non-null parameter values.
  204. @override
  205. @pragma('vm:prefer-inline')
  206. $ChannelPlanCopyWith<$Res>? get planInfo {
  207. if (_value.planInfo == null) {
  208. return null;
  209. }
  210. return $ChannelPlanCopyWith<$Res>(_value.planInfo!, (value) {
  211. return _then(_value.copyWith(planInfo: value) as $Val);
  212. });
  213. }
  214. }
  215. /// @nodoc
  216. abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
  217. factory _$$UserImplCopyWith(
  218. _$UserImpl value,
  219. $Res Function(_$UserImpl) then,
  220. ) = __$$UserImplCopyWithImpl<$Res>;
  221. @override
  222. @useResult
  223. $Res call({
  224. String? country,
  225. String? countryName,
  226. String? userIp,
  227. String? accessToken,
  228. String? refreshToken,
  229. String? accountKey,
  230. String? accountPassword,
  231. int? createTime,
  232. bool? geographyEea,
  233. int? memberLevel,
  234. int? userLevel,
  235. int? expireTime,
  236. int? remainTime,
  237. bool? isExpired,
  238. bool? isTestUser,
  239. bool? isSubscribeUser,
  240. Account? account,
  241. ChannelPlan? planInfo,
  242. bool? activated,
  243. });
  244. @override
  245. $AccountCopyWith<$Res>? get account;
  246. @override
  247. $ChannelPlanCopyWith<$Res>? get planInfo;
  248. }
  249. /// @nodoc
  250. class __$$UserImplCopyWithImpl<$Res>
  251. extends _$UserCopyWithImpl<$Res, _$UserImpl>
  252. implements _$$UserImplCopyWith<$Res> {
  253. __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then)
  254. : super(_value, _then);
  255. /// Create a copy of User
  256. /// with the given fields replaced by the non-null parameter values.
  257. @pragma('vm:prefer-inline')
  258. @override
  259. $Res call({
  260. Object? country = freezed,
  261. Object? countryName = freezed,
  262. Object? userIp = freezed,
  263. Object? accessToken = freezed,
  264. Object? refreshToken = freezed,
  265. Object? accountKey = freezed,
  266. Object? accountPassword = freezed,
  267. Object? createTime = freezed,
  268. Object? geographyEea = freezed,
  269. Object? memberLevel = freezed,
  270. Object? userLevel = freezed,
  271. Object? expireTime = freezed,
  272. Object? remainTime = freezed,
  273. Object? isExpired = freezed,
  274. Object? isTestUser = freezed,
  275. Object? isSubscribeUser = freezed,
  276. Object? account = freezed,
  277. Object? planInfo = freezed,
  278. Object? activated = freezed,
  279. }) {
  280. return _then(
  281. _$UserImpl(
  282. country: freezed == country
  283. ? _value.country
  284. : country // ignore: cast_nullable_to_non_nullable
  285. as String?,
  286. countryName: freezed == countryName
  287. ? _value.countryName
  288. : countryName // ignore: cast_nullable_to_non_nullable
  289. as String?,
  290. userIp: freezed == userIp
  291. ? _value.userIp
  292. : userIp // ignore: cast_nullable_to_non_nullable
  293. as String?,
  294. accessToken: freezed == accessToken
  295. ? _value.accessToken
  296. : accessToken // ignore: cast_nullable_to_non_nullable
  297. as String?,
  298. refreshToken: freezed == refreshToken
  299. ? _value.refreshToken
  300. : refreshToken // ignore: cast_nullable_to_non_nullable
  301. as String?,
  302. accountKey: freezed == accountKey
  303. ? _value.accountKey
  304. : accountKey // ignore: cast_nullable_to_non_nullable
  305. as String?,
  306. accountPassword: freezed == accountPassword
  307. ? _value.accountPassword
  308. : accountPassword // ignore: cast_nullable_to_non_nullable
  309. as String?,
  310. createTime: freezed == createTime
  311. ? _value.createTime
  312. : createTime // ignore: cast_nullable_to_non_nullable
  313. as int?,
  314. geographyEea: freezed == geographyEea
  315. ? _value.geographyEea
  316. : geographyEea // ignore: cast_nullable_to_non_nullable
  317. as bool?,
  318. memberLevel: freezed == memberLevel
  319. ? _value.memberLevel
  320. : memberLevel // ignore: cast_nullable_to_non_nullable
  321. as int?,
  322. userLevel: freezed == userLevel
  323. ? _value.userLevel
  324. : userLevel // ignore: cast_nullable_to_non_nullable
  325. as int?,
  326. expireTime: freezed == expireTime
  327. ? _value.expireTime
  328. : expireTime // ignore: cast_nullable_to_non_nullable
  329. as int?,
  330. remainTime: freezed == remainTime
  331. ? _value.remainTime
  332. : remainTime // ignore: cast_nullable_to_non_nullable
  333. as int?,
  334. isExpired: freezed == isExpired
  335. ? _value.isExpired
  336. : isExpired // ignore: cast_nullable_to_non_nullable
  337. as bool?,
  338. isTestUser: freezed == isTestUser
  339. ? _value.isTestUser
  340. : isTestUser // ignore: cast_nullable_to_non_nullable
  341. as bool?,
  342. isSubscribeUser: freezed == isSubscribeUser
  343. ? _value.isSubscribeUser
  344. : isSubscribeUser // ignore: cast_nullable_to_non_nullable
  345. as bool?,
  346. account: freezed == account
  347. ? _value.account
  348. : account // ignore: cast_nullable_to_non_nullable
  349. as Account?,
  350. planInfo: freezed == planInfo
  351. ? _value.planInfo
  352. : planInfo // ignore: cast_nullable_to_non_nullable
  353. as ChannelPlan?,
  354. activated: freezed == activated
  355. ? _value.activated
  356. : activated // ignore: cast_nullable_to_non_nullable
  357. as bool?,
  358. ),
  359. );
  360. }
  361. }
  362. /// @nodoc
  363. @JsonSerializable()
  364. class _$UserImpl with DiagnosticableTreeMixin implements _User {
  365. const _$UserImpl({
  366. this.country,
  367. this.countryName,
  368. this.userIp,
  369. this.accessToken,
  370. this.refreshToken,
  371. this.accountKey,
  372. this.accountPassword,
  373. this.createTime,
  374. this.geographyEea,
  375. this.memberLevel,
  376. this.userLevel,
  377. this.expireTime,
  378. this.remainTime,
  379. this.isExpired,
  380. this.isTestUser,
  381. this.isSubscribeUser,
  382. this.account,
  383. this.planInfo,
  384. this.activated,
  385. });
  386. factory _$UserImpl.fromJson(Map<String, dynamic> json) =>
  387. _$$UserImplFromJson(json);
  388. @override
  389. final String? country;
  390. @override
  391. final String? countryName;
  392. @override
  393. final String? userIp;
  394. @override
  395. final String? accessToken;
  396. @override
  397. final String? refreshToken;
  398. @override
  399. final String? accountKey;
  400. @override
  401. final String? accountPassword;
  402. @override
  403. final int? createTime;
  404. // API 返回 int 类型的时间戳
  405. @override
  406. final bool? geographyEea;
  407. @override
  408. final int? memberLevel;
  409. // 会员等级 1 游客 2 普通用户 3 会员
  410. @override
  411. final int? userLevel;
  412. @override
  413. final int? expireTime;
  414. @override
  415. final int? remainTime;
  416. @override
  417. final bool? isExpired;
  418. @override
  419. final bool? isTestUser;
  420. @override
  421. final bool? isSubscribeUser;
  422. @override
  423. final Account? account;
  424. // API 返回对象类型
  425. @override
  426. final ChannelPlan? planInfo;
  427. @override
  428. final bool? activated;
  429. @override
  430. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  431. 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, planInfo: $planInfo, activated: $activated)';
  432. }
  433. @override
  434. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  435. super.debugFillProperties(properties);
  436. properties
  437. ..add(DiagnosticsProperty('type', 'User'))
  438. ..add(DiagnosticsProperty('country', country))
  439. ..add(DiagnosticsProperty('countryName', countryName))
  440. ..add(DiagnosticsProperty('userIp', userIp))
  441. ..add(DiagnosticsProperty('accessToken', accessToken))
  442. ..add(DiagnosticsProperty('refreshToken', refreshToken))
  443. ..add(DiagnosticsProperty('accountKey', accountKey))
  444. ..add(DiagnosticsProperty('accountPassword', accountPassword))
  445. ..add(DiagnosticsProperty('createTime', createTime))
  446. ..add(DiagnosticsProperty('geographyEea', geographyEea))
  447. ..add(DiagnosticsProperty('memberLevel', memberLevel))
  448. ..add(DiagnosticsProperty('userLevel', userLevel))
  449. ..add(DiagnosticsProperty('expireTime', expireTime))
  450. ..add(DiagnosticsProperty('remainTime', remainTime))
  451. ..add(DiagnosticsProperty('isExpired', isExpired))
  452. ..add(DiagnosticsProperty('isTestUser', isTestUser))
  453. ..add(DiagnosticsProperty('isSubscribeUser', isSubscribeUser))
  454. ..add(DiagnosticsProperty('account', account))
  455. ..add(DiagnosticsProperty('planInfo', planInfo))
  456. ..add(DiagnosticsProperty('activated', activated));
  457. }
  458. @override
  459. bool operator ==(Object other) {
  460. return identical(this, other) ||
  461. (other.runtimeType == runtimeType &&
  462. other is _$UserImpl &&
  463. (identical(other.country, country) || other.country == country) &&
  464. (identical(other.countryName, countryName) ||
  465. other.countryName == countryName) &&
  466. (identical(other.userIp, userIp) || other.userIp == userIp) &&
  467. (identical(other.accessToken, accessToken) ||
  468. other.accessToken == accessToken) &&
  469. (identical(other.refreshToken, refreshToken) ||
  470. other.refreshToken == refreshToken) &&
  471. (identical(other.accountKey, accountKey) ||
  472. other.accountKey == accountKey) &&
  473. (identical(other.accountPassword, accountPassword) ||
  474. other.accountPassword == accountPassword) &&
  475. (identical(other.createTime, createTime) ||
  476. other.createTime == createTime) &&
  477. (identical(other.geographyEea, geographyEea) ||
  478. other.geographyEea == geographyEea) &&
  479. (identical(other.memberLevel, memberLevel) ||
  480. other.memberLevel == memberLevel) &&
  481. (identical(other.userLevel, userLevel) ||
  482. other.userLevel == userLevel) &&
  483. (identical(other.expireTime, expireTime) ||
  484. other.expireTime == expireTime) &&
  485. (identical(other.remainTime, remainTime) ||
  486. other.remainTime == remainTime) &&
  487. (identical(other.isExpired, isExpired) ||
  488. other.isExpired == isExpired) &&
  489. (identical(other.isTestUser, isTestUser) ||
  490. other.isTestUser == isTestUser) &&
  491. (identical(other.isSubscribeUser, isSubscribeUser) ||
  492. other.isSubscribeUser == isSubscribeUser) &&
  493. (identical(other.account, account) || other.account == account) &&
  494. (identical(other.planInfo, planInfo) ||
  495. other.planInfo == planInfo) &&
  496. (identical(other.activated, activated) ||
  497. other.activated == activated));
  498. }
  499. @JsonKey(includeFromJson: false, includeToJson: false)
  500. @override
  501. int get hashCode => Object.hashAll([
  502. runtimeType,
  503. country,
  504. countryName,
  505. userIp,
  506. accessToken,
  507. refreshToken,
  508. accountKey,
  509. accountPassword,
  510. createTime,
  511. geographyEea,
  512. memberLevel,
  513. userLevel,
  514. expireTime,
  515. remainTime,
  516. isExpired,
  517. isTestUser,
  518. isSubscribeUser,
  519. account,
  520. planInfo,
  521. activated,
  522. ]);
  523. /// Create a copy of User
  524. /// with the given fields replaced by the non-null parameter values.
  525. @JsonKey(includeFromJson: false, includeToJson: false)
  526. @override
  527. @pragma('vm:prefer-inline')
  528. _$$UserImplCopyWith<_$UserImpl> get copyWith =>
  529. __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity);
  530. @override
  531. Map<String, dynamic> toJson() {
  532. return _$$UserImplToJson(this);
  533. }
  534. }
  535. abstract class _User implements User {
  536. const factory _User({
  537. final String? country,
  538. final String? countryName,
  539. final String? userIp,
  540. final String? accessToken,
  541. final String? refreshToken,
  542. final String? accountKey,
  543. final String? accountPassword,
  544. final int? createTime,
  545. final bool? geographyEea,
  546. final int? memberLevel,
  547. final int? userLevel,
  548. final int? expireTime,
  549. final int? remainTime,
  550. final bool? isExpired,
  551. final bool? isTestUser,
  552. final bool? isSubscribeUser,
  553. final Account? account,
  554. final ChannelPlan? planInfo,
  555. final bool? activated,
  556. }) = _$UserImpl;
  557. factory _User.fromJson(Map<String, dynamic> json) = _$UserImpl.fromJson;
  558. @override
  559. String? get country;
  560. @override
  561. String? get countryName;
  562. @override
  563. String? get userIp;
  564. @override
  565. String? get accessToken;
  566. @override
  567. String? get refreshToken;
  568. @override
  569. String? get accountKey;
  570. @override
  571. String? get accountPassword;
  572. @override
  573. int? get createTime; // API 返回 int 类型的时间戳
  574. @override
  575. bool? get geographyEea;
  576. @override
  577. int? get memberLevel; // 会员等级 1 游客 2 普通用户 3 会员
  578. @override
  579. int? get userLevel;
  580. @override
  581. int? get expireTime;
  582. @override
  583. int? get remainTime;
  584. @override
  585. bool? get isExpired;
  586. @override
  587. bool? get isTestUser;
  588. @override
  589. bool? get isSubscribeUser;
  590. @override
  591. Account? get account; // API 返回对象类型
  592. @override
  593. ChannelPlan? get planInfo;
  594. @override
  595. bool? get activated;
  596. /// Create a copy of User
  597. /// with the given fields replaced by the non-null parameter values.
  598. @override
  599. @JsonKey(includeFromJson: false, includeToJson: false)
  600. _$$UserImplCopyWith<_$UserImpl> get copyWith =>
  601. throw _privateConstructorUsedError;
  602. }
  603. Account _$AccountFromJson(Map<String, dynamic> json) {
  604. return _Account.fromJson(json);
  605. }
  606. /// @nodoc
  607. mixin _$Account {
  608. String? get username => throw _privateConstructorUsedError;
  609. String? get phone => throw _privateConstructorUsedError;
  610. String? get email => throw _privateConstructorUsedError;
  611. String? get wechat => throw _privateConstructorUsedError;
  612. String? get qq => throw _privateConstructorUsedError;
  613. String? get google => throw _privateConstructorUsedError;
  614. String? get apple => throw _privateConstructorUsedError;
  615. /// Serializes this Account to a JSON map.
  616. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  617. /// Create a copy of Account
  618. /// with the given fields replaced by the non-null parameter values.
  619. @JsonKey(includeFromJson: false, includeToJson: false)
  620. $AccountCopyWith<Account> get copyWith => throw _privateConstructorUsedError;
  621. }
  622. /// @nodoc
  623. abstract class $AccountCopyWith<$Res> {
  624. factory $AccountCopyWith(Account value, $Res Function(Account) then) =
  625. _$AccountCopyWithImpl<$Res, Account>;
  626. @useResult
  627. $Res call({
  628. String? username,
  629. String? phone,
  630. String? email,
  631. String? wechat,
  632. String? qq,
  633. String? google,
  634. String? apple,
  635. });
  636. }
  637. /// @nodoc
  638. class _$AccountCopyWithImpl<$Res, $Val extends Account>
  639. implements $AccountCopyWith<$Res> {
  640. _$AccountCopyWithImpl(this._value, this._then);
  641. // ignore: unused_field
  642. final $Val _value;
  643. // ignore: unused_field
  644. final $Res Function($Val) _then;
  645. /// Create a copy of Account
  646. /// with the given fields replaced by the non-null parameter values.
  647. @pragma('vm:prefer-inline')
  648. @override
  649. $Res call({
  650. Object? username = freezed,
  651. Object? phone = freezed,
  652. Object? email = freezed,
  653. Object? wechat = freezed,
  654. Object? qq = freezed,
  655. Object? google = freezed,
  656. Object? apple = freezed,
  657. }) {
  658. return _then(
  659. _value.copyWith(
  660. username: freezed == username
  661. ? _value.username
  662. : username // ignore: cast_nullable_to_non_nullable
  663. as String?,
  664. phone: freezed == phone
  665. ? _value.phone
  666. : phone // ignore: cast_nullable_to_non_nullable
  667. as String?,
  668. email: freezed == email
  669. ? _value.email
  670. : email // ignore: cast_nullable_to_non_nullable
  671. as String?,
  672. wechat: freezed == wechat
  673. ? _value.wechat
  674. : wechat // ignore: cast_nullable_to_non_nullable
  675. as String?,
  676. qq: freezed == qq
  677. ? _value.qq
  678. : qq // ignore: cast_nullable_to_non_nullable
  679. as String?,
  680. google: freezed == google
  681. ? _value.google
  682. : google // ignore: cast_nullable_to_non_nullable
  683. as String?,
  684. apple: freezed == apple
  685. ? _value.apple
  686. : apple // ignore: cast_nullable_to_non_nullable
  687. as String?,
  688. )
  689. as $Val,
  690. );
  691. }
  692. }
  693. /// @nodoc
  694. abstract class _$$AccountImplCopyWith<$Res> implements $AccountCopyWith<$Res> {
  695. factory _$$AccountImplCopyWith(
  696. _$AccountImpl value,
  697. $Res Function(_$AccountImpl) then,
  698. ) = __$$AccountImplCopyWithImpl<$Res>;
  699. @override
  700. @useResult
  701. $Res call({
  702. String? username,
  703. String? phone,
  704. String? email,
  705. String? wechat,
  706. String? qq,
  707. String? google,
  708. String? apple,
  709. });
  710. }
  711. /// @nodoc
  712. class __$$AccountImplCopyWithImpl<$Res>
  713. extends _$AccountCopyWithImpl<$Res, _$AccountImpl>
  714. implements _$$AccountImplCopyWith<$Res> {
  715. __$$AccountImplCopyWithImpl(
  716. _$AccountImpl _value,
  717. $Res Function(_$AccountImpl) _then,
  718. ) : super(_value, _then);
  719. /// Create a copy of Account
  720. /// with the given fields replaced by the non-null parameter values.
  721. @pragma('vm:prefer-inline')
  722. @override
  723. $Res call({
  724. Object? username = freezed,
  725. Object? phone = freezed,
  726. Object? email = freezed,
  727. Object? wechat = freezed,
  728. Object? qq = freezed,
  729. Object? google = freezed,
  730. Object? apple = freezed,
  731. }) {
  732. return _then(
  733. _$AccountImpl(
  734. username: freezed == username
  735. ? _value.username
  736. : username // ignore: cast_nullable_to_non_nullable
  737. as String?,
  738. phone: freezed == phone
  739. ? _value.phone
  740. : phone // ignore: cast_nullable_to_non_nullable
  741. as String?,
  742. email: freezed == email
  743. ? _value.email
  744. : email // ignore: cast_nullable_to_non_nullable
  745. as String?,
  746. wechat: freezed == wechat
  747. ? _value.wechat
  748. : wechat // ignore: cast_nullable_to_non_nullable
  749. as String?,
  750. qq: freezed == qq
  751. ? _value.qq
  752. : qq // ignore: cast_nullable_to_non_nullable
  753. as String?,
  754. google: freezed == google
  755. ? _value.google
  756. : google // ignore: cast_nullable_to_non_nullable
  757. as String?,
  758. apple: freezed == apple
  759. ? _value.apple
  760. : apple // ignore: cast_nullable_to_non_nullable
  761. as String?,
  762. ),
  763. );
  764. }
  765. }
  766. /// @nodoc
  767. @JsonSerializable()
  768. class _$AccountImpl with DiagnosticableTreeMixin implements _Account {
  769. const _$AccountImpl({
  770. this.username,
  771. this.phone,
  772. this.email,
  773. this.wechat,
  774. this.qq,
  775. this.google,
  776. this.apple,
  777. });
  778. factory _$AccountImpl.fromJson(Map<String, dynamic> json) =>
  779. _$$AccountImplFromJson(json);
  780. @override
  781. final String? username;
  782. @override
  783. final String? phone;
  784. @override
  785. final String? email;
  786. @override
  787. final String? wechat;
  788. @override
  789. final String? qq;
  790. @override
  791. final String? google;
  792. @override
  793. final String? apple;
  794. @override
  795. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  796. return 'Account(username: $username, phone: $phone, email: $email, wechat: $wechat, qq: $qq, google: $google, apple: $apple)';
  797. }
  798. @override
  799. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  800. super.debugFillProperties(properties);
  801. properties
  802. ..add(DiagnosticsProperty('type', 'Account'))
  803. ..add(DiagnosticsProperty('username', username))
  804. ..add(DiagnosticsProperty('phone', phone))
  805. ..add(DiagnosticsProperty('email', email))
  806. ..add(DiagnosticsProperty('wechat', wechat))
  807. ..add(DiagnosticsProperty('qq', qq))
  808. ..add(DiagnosticsProperty('google', google))
  809. ..add(DiagnosticsProperty('apple', apple));
  810. }
  811. @override
  812. bool operator ==(Object other) {
  813. return identical(this, other) ||
  814. (other.runtimeType == runtimeType &&
  815. other is _$AccountImpl &&
  816. (identical(other.username, username) ||
  817. other.username == username) &&
  818. (identical(other.phone, phone) || other.phone == phone) &&
  819. (identical(other.email, email) || other.email == email) &&
  820. (identical(other.wechat, wechat) || other.wechat == wechat) &&
  821. (identical(other.qq, qq) || other.qq == qq) &&
  822. (identical(other.google, google) || other.google == google) &&
  823. (identical(other.apple, apple) || other.apple == apple));
  824. }
  825. @JsonKey(includeFromJson: false, includeToJson: false)
  826. @override
  827. int get hashCode => Object.hash(
  828. runtimeType,
  829. username,
  830. phone,
  831. email,
  832. wechat,
  833. qq,
  834. google,
  835. apple,
  836. );
  837. /// Create a copy of Account
  838. /// with the given fields replaced by the non-null parameter values.
  839. @JsonKey(includeFromJson: false, includeToJson: false)
  840. @override
  841. @pragma('vm:prefer-inline')
  842. _$$AccountImplCopyWith<_$AccountImpl> get copyWith =>
  843. __$$AccountImplCopyWithImpl<_$AccountImpl>(this, _$identity);
  844. @override
  845. Map<String, dynamic> toJson() {
  846. return _$$AccountImplToJson(this);
  847. }
  848. }
  849. abstract class _Account implements Account {
  850. const factory _Account({
  851. final String? username,
  852. final String? phone,
  853. final String? email,
  854. final String? wechat,
  855. final String? qq,
  856. final String? google,
  857. final String? apple,
  858. }) = _$AccountImpl;
  859. factory _Account.fromJson(Map<String, dynamic> json) = _$AccountImpl.fromJson;
  860. @override
  861. String? get username;
  862. @override
  863. String? get phone;
  864. @override
  865. String? get email;
  866. @override
  867. String? get wechat;
  868. @override
  869. String? get qq;
  870. @override
  871. String? get google;
  872. @override
  873. String? get apple;
  874. /// Create a copy of Account
  875. /// with the given fields replaced by the non-null parameter values.
  876. @override
  877. @JsonKey(includeFromJson: false, includeToJson: false)
  878. _$$AccountImplCopyWith<_$AccountImpl> get copyWith =>
  879. throw _privateConstructorUsedError;
  880. }