user.freezed.dart 29 KB

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