channel_plan_list.freezed.dart 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  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 'channel_plan_list.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. ChannelPlanList _$ChannelPlanListFromJson(Map<String, dynamic> json) {
  14. return _ChannelPlanList.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$ChannelPlanList {
  18. List<ChannelPlan>? get list => throw _privateConstructorUsedError;
  19. /// Serializes this ChannelPlanList to a JSON map.
  20. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  21. /// Create a copy of ChannelPlanList
  22. /// with the given fields replaced by the non-null parameter values.
  23. @JsonKey(includeFromJson: false, includeToJson: false)
  24. $ChannelPlanListCopyWith<ChannelPlanList> get copyWith =>
  25. throw _privateConstructorUsedError;
  26. }
  27. /// @nodoc
  28. abstract class $ChannelPlanListCopyWith<$Res> {
  29. factory $ChannelPlanListCopyWith(
  30. ChannelPlanList value,
  31. $Res Function(ChannelPlanList) then,
  32. ) = _$ChannelPlanListCopyWithImpl<$Res, ChannelPlanList>;
  33. @useResult
  34. $Res call({List<ChannelPlan>? list});
  35. }
  36. /// @nodoc
  37. class _$ChannelPlanListCopyWithImpl<$Res, $Val extends ChannelPlanList>
  38. implements $ChannelPlanListCopyWith<$Res> {
  39. _$ChannelPlanListCopyWithImpl(this._value, this._then);
  40. // ignore: unused_field
  41. final $Val _value;
  42. // ignore: unused_field
  43. final $Res Function($Val) _then;
  44. /// Create a copy of ChannelPlanList
  45. /// with the given fields replaced by the non-null parameter values.
  46. @pragma('vm:prefer-inline')
  47. @override
  48. $Res call({Object? list = freezed}) {
  49. return _then(
  50. _value.copyWith(
  51. list: freezed == list
  52. ? _value.list
  53. : list // ignore: cast_nullable_to_non_nullable
  54. as List<ChannelPlan>?,
  55. )
  56. as $Val,
  57. );
  58. }
  59. }
  60. /// @nodoc
  61. abstract class _$$ChannelPlanListImplCopyWith<$Res>
  62. implements $ChannelPlanListCopyWith<$Res> {
  63. factory _$$ChannelPlanListImplCopyWith(
  64. _$ChannelPlanListImpl value,
  65. $Res Function(_$ChannelPlanListImpl) then,
  66. ) = __$$ChannelPlanListImplCopyWithImpl<$Res>;
  67. @override
  68. @useResult
  69. $Res call({List<ChannelPlan>? list});
  70. }
  71. /// @nodoc
  72. class __$$ChannelPlanListImplCopyWithImpl<$Res>
  73. extends _$ChannelPlanListCopyWithImpl<$Res, _$ChannelPlanListImpl>
  74. implements _$$ChannelPlanListImplCopyWith<$Res> {
  75. __$$ChannelPlanListImplCopyWithImpl(
  76. _$ChannelPlanListImpl _value,
  77. $Res Function(_$ChannelPlanListImpl) _then,
  78. ) : super(_value, _then);
  79. /// Create a copy of ChannelPlanList
  80. /// with the given fields replaced by the non-null parameter values.
  81. @pragma('vm:prefer-inline')
  82. @override
  83. $Res call({Object? list = freezed}) {
  84. return _then(
  85. _$ChannelPlanListImpl(
  86. list: freezed == list
  87. ? _value._list
  88. : list // ignore: cast_nullable_to_non_nullable
  89. as List<ChannelPlan>?,
  90. ),
  91. );
  92. }
  93. }
  94. /// @nodoc
  95. @JsonSerializable()
  96. class _$ChannelPlanListImpl
  97. with DiagnosticableTreeMixin
  98. implements _ChannelPlanList {
  99. const _$ChannelPlanListImpl({final List<ChannelPlan>? list}) : _list = list;
  100. factory _$ChannelPlanListImpl.fromJson(Map<String, dynamic> json) =>
  101. _$$ChannelPlanListImplFromJson(json);
  102. final List<ChannelPlan>? _list;
  103. @override
  104. List<ChannelPlan>? get list {
  105. final value = _list;
  106. if (value == null) return null;
  107. if (_list is EqualUnmodifiableListView) return _list;
  108. // ignore: implicit_dynamic_type
  109. return EqualUnmodifiableListView(value);
  110. }
  111. @override
  112. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  113. return 'ChannelPlanList(list: $list)';
  114. }
  115. @override
  116. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  117. super.debugFillProperties(properties);
  118. properties
  119. ..add(DiagnosticsProperty('type', 'ChannelPlanList'))
  120. ..add(DiagnosticsProperty('list', list));
  121. }
  122. @override
  123. bool operator ==(Object other) {
  124. return identical(this, other) ||
  125. (other.runtimeType == runtimeType &&
  126. other is _$ChannelPlanListImpl &&
  127. const DeepCollectionEquality().equals(other._list, _list));
  128. }
  129. @JsonKey(includeFromJson: false, includeToJson: false)
  130. @override
  131. int get hashCode =>
  132. Object.hash(runtimeType, const DeepCollectionEquality().hash(_list));
  133. /// Create a copy of ChannelPlanList
  134. /// with the given fields replaced by the non-null parameter values.
  135. @JsonKey(includeFromJson: false, includeToJson: false)
  136. @override
  137. @pragma('vm:prefer-inline')
  138. _$$ChannelPlanListImplCopyWith<_$ChannelPlanListImpl> get copyWith =>
  139. __$$ChannelPlanListImplCopyWithImpl<_$ChannelPlanListImpl>(
  140. this,
  141. _$identity,
  142. );
  143. @override
  144. Map<String, dynamic> toJson() {
  145. return _$$ChannelPlanListImplToJson(this);
  146. }
  147. }
  148. abstract class _ChannelPlanList implements ChannelPlanList {
  149. const factory _ChannelPlanList({final List<ChannelPlan>? list}) =
  150. _$ChannelPlanListImpl;
  151. factory _ChannelPlanList.fromJson(Map<String, dynamic> json) =
  152. _$ChannelPlanListImpl.fromJson;
  153. @override
  154. List<ChannelPlan>? get list;
  155. /// Create a copy of ChannelPlanList
  156. /// with the given fields replaced by the non-null parameter values.
  157. @override
  158. @JsonKey(includeFromJson: false, includeToJson: false)
  159. _$$ChannelPlanListImplCopyWith<_$ChannelPlanListImpl> get copyWith =>
  160. throw _privateConstructorUsedError;
  161. }
  162. ChannelPlan _$ChannelPlanFromJson(Map<String, dynamic> json) {
  163. return _ChannelPlan.fromJson(json);
  164. }
  165. /// @nodoc
  166. mixin _$ChannelPlan {
  167. String? get channelItemId => throw _privateConstructorUsedError;
  168. String? get title => throw _privateConstructorUsedError;
  169. String? get subTitle => throw _privateConstructorUsedError;
  170. String? get introduce => throw _privateConstructorUsedError;
  171. double? get orgPrice => throw _privateConstructorUsedError;
  172. double? get price => throw _privateConstructorUsedError;
  173. String? get tag => throw _privateConstructorUsedError;
  174. int? get tagType => throw _privateConstructorUsedError;
  175. int? get currency => throw _privateConstructorUsedError;
  176. bool? get recommend => throw _privateConstructorUsedError;
  177. bool? get isDefault => throw _privateConstructorUsedError;
  178. int? get sort => throw _privateConstructorUsedError;
  179. int? get deviceLimit => throw _privateConstructorUsedError;
  180. bool? get isSubscribe => throw _privateConstructorUsedError;
  181. int? get subscribeType => throw _privateConstructorUsedError;
  182. int? get subscribePeriodValue => throw _privateConstructorUsedError;
  183. String? get payoutType => throw _privateConstructorUsedError;
  184. String? get payoutData => throw _privateConstructorUsedError;
  185. /// Serializes this ChannelPlan to a JSON map.
  186. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  187. /// Create a copy of ChannelPlan
  188. /// with the given fields replaced by the non-null parameter values.
  189. @JsonKey(includeFromJson: false, includeToJson: false)
  190. $ChannelPlanCopyWith<ChannelPlan> get copyWith =>
  191. throw _privateConstructorUsedError;
  192. }
  193. /// @nodoc
  194. abstract class $ChannelPlanCopyWith<$Res> {
  195. factory $ChannelPlanCopyWith(
  196. ChannelPlan value,
  197. $Res Function(ChannelPlan) then,
  198. ) = _$ChannelPlanCopyWithImpl<$Res, ChannelPlan>;
  199. @useResult
  200. $Res call({
  201. String? channelItemId,
  202. String? title,
  203. String? subTitle,
  204. String? introduce,
  205. double? orgPrice,
  206. double? price,
  207. String? tag,
  208. int? tagType,
  209. int? currency,
  210. bool? recommend,
  211. bool? isDefault,
  212. int? sort,
  213. int? deviceLimit,
  214. bool? isSubscribe,
  215. int? subscribeType,
  216. int? subscribePeriodValue,
  217. String? payoutType,
  218. String? payoutData,
  219. });
  220. }
  221. /// @nodoc
  222. class _$ChannelPlanCopyWithImpl<$Res, $Val extends ChannelPlan>
  223. implements $ChannelPlanCopyWith<$Res> {
  224. _$ChannelPlanCopyWithImpl(this._value, this._then);
  225. // ignore: unused_field
  226. final $Val _value;
  227. // ignore: unused_field
  228. final $Res Function($Val) _then;
  229. /// Create a copy of ChannelPlan
  230. /// with the given fields replaced by the non-null parameter values.
  231. @pragma('vm:prefer-inline')
  232. @override
  233. $Res call({
  234. Object? channelItemId = freezed,
  235. Object? title = freezed,
  236. Object? subTitle = freezed,
  237. Object? introduce = freezed,
  238. Object? orgPrice = freezed,
  239. Object? price = freezed,
  240. Object? tag = freezed,
  241. Object? tagType = freezed,
  242. Object? currency = freezed,
  243. Object? recommend = freezed,
  244. Object? isDefault = freezed,
  245. Object? sort = freezed,
  246. Object? deviceLimit = freezed,
  247. Object? isSubscribe = freezed,
  248. Object? subscribeType = freezed,
  249. Object? subscribePeriodValue = freezed,
  250. Object? payoutType = freezed,
  251. Object? payoutData = freezed,
  252. }) {
  253. return _then(
  254. _value.copyWith(
  255. channelItemId: freezed == channelItemId
  256. ? _value.channelItemId
  257. : channelItemId // ignore: cast_nullable_to_non_nullable
  258. as String?,
  259. title: freezed == title
  260. ? _value.title
  261. : title // ignore: cast_nullable_to_non_nullable
  262. as String?,
  263. subTitle: freezed == subTitle
  264. ? _value.subTitle
  265. : subTitle // ignore: cast_nullable_to_non_nullable
  266. as String?,
  267. introduce: freezed == introduce
  268. ? _value.introduce
  269. : introduce // ignore: cast_nullable_to_non_nullable
  270. as String?,
  271. orgPrice: freezed == orgPrice
  272. ? _value.orgPrice
  273. : orgPrice // ignore: cast_nullable_to_non_nullable
  274. as double?,
  275. price: freezed == price
  276. ? _value.price
  277. : price // ignore: cast_nullable_to_non_nullable
  278. as double?,
  279. tag: freezed == tag
  280. ? _value.tag
  281. : tag // ignore: cast_nullable_to_non_nullable
  282. as String?,
  283. tagType: freezed == tagType
  284. ? _value.tagType
  285. : tagType // ignore: cast_nullable_to_non_nullable
  286. as int?,
  287. currency: freezed == currency
  288. ? _value.currency
  289. : currency // ignore: cast_nullable_to_non_nullable
  290. as int?,
  291. recommend: freezed == recommend
  292. ? _value.recommend
  293. : recommend // ignore: cast_nullable_to_non_nullable
  294. as bool?,
  295. isDefault: freezed == isDefault
  296. ? _value.isDefault
  297. : isDefault // ignore: cast_nullable_to_non_nullable
  298. as bool?,
  299. sort: freezed == sort
  300. ? _value.sort
  301. : sort // ignore: cast_nullable_to_non_nullable
  302. as int?,
  303. deviceLimit: freezed == deviceLimit
  304. ? _value.deviceLimit
  305. : deviceLimit // ignore: cast_nullable_to_non_nullable
  306. as int?,
  307. isSubscribe: freezed == isSubscribe
  308. ? _value.isSubscribe
  309. : isSubscribe // ignore: cast_nullable_to_non_nullable
  310. as bool?,
  311. subscribeType: freezed == subscribeType
  312. ? _value.subscribeType
  313. : subscribeType // ignore: cast_nullable_to_non_nullable
  314. as int?,
  315. subscribePeriodValue: freezed == subscribePeriodValue
  316. ? _value.subscribePeriodValue
  317. : subscribePeriodValue // ignore: cast_nullable_to_non_nullable
  318. as int?,
  319. payoutType: freezed == payoutType
  320. ? _value.payoutType
  321. : payoutType // ignore: cast_nullable_to_non_nullable
  322. as String?,
  323. payoutData: freezed == payoutData
  324. ? _value.payoutData
  325. : payoutData // ignore: cast_nullable_to_non_nullable
  326. as String?,
  327. )
  328. as $Val,
  329. );
  330. }
  331. }
  332. /// @nodoc
  333. abstract class _$$ChannelPlanImplCopyWith<$Res>
  334. implements $ChannelPlanCopyWith<$Res> {
  335. factory _$$ChannelPlanImplCopyWith(
  336. _$ChannelPlanImpl value,
  337. $Res Function(_$ChannelPlanImpl) then,
  338. ) = __$$ChannelPlanImplCopyWithImpl<$Res>;
  339. @override
  340. @useResult
  341. $Res call({
  342. String? channelItemId,
  343. String? title,
  344. String? subTitle,
  345. String? introduce,
  346. double? orgPrice,
  347. double? price,
  348. String? tag,
  349. int? tagType,
  350. int? currency,
  351. bool? recommend,
  352. bool? isDefault,
  353. int? sort,
  354. int? deviceLimit,
  355. bool? isSubscribe,
  356. int? subscribeType,
  357. int? subscribePeriodValue,
  358. String? payoutType,
  359. String? payoutData,
  360. });
  361. }
  362. /// @nodoc
  363. class __$$ChannelPlanImplCopyWithImpl<$Res>
  364. extends _$ChannelPlanCopyWithImpl<$Res, _$ChannelPlanImpl>
  365. implements _$$ChannelPlanImplCopyWith<$Res> {
  366. __$$ChannelPlanImplCopyWithImpl(
  367. _$ChannelPlanImpl _value,
  368. $Res Function(_$ChannelPlanImpl) _then,
  369. ) : super(_value, _then);
  370. /// Create a copy of ChannelPlan
  371. /// with the given fields replaced by the non-null parameter values.
  372. @pragma('vm:prefer-inline')
  373. @override
  374. $Res call({
  375. Object? channelItemId = freezed,
  376. Object? title = freezed,
  377. Object? subTitle = freezed,
  378. Object? introduce = freezed,
  379. Object? orgPrice = freezed,
  380. Object? price = freezed,
  381. Object? tag = freezed,
  382. Object? tagType = freezed,
  383. Object? currency = freezed,
  384. Object? recommend = freezed,
  385. Object? isDefault = freezed,
  386. Object? sort = freezed,
  387. Object? deviceLimit = freezed,
  388. Object? isSubscribe = freezed,
  389. Object? subscribeType = freezed,
  390. Object? subscribePeriodValue = freezed,
  391. Object? payoutType = freezed,
  392. Object? payoutData = freezed,
  393. }) {
  394. return _then(
  395. _$ChannelPlanImpl(
  396. channelItemId: freezed == channelItemId
  397. ? _value.channelItemId
  398. : channelItemId // ignore: cast_nullable_to_non_nullable
  399. as String?,
  400. title: freezed == title
  401. ? _value.title
  402. : title // ignore: cast_nullable_to_non_nullable
  403. as String?,
  404. subTitle: freezed == subTitle
  405. ? _value.subTitle
  406. : subTitle // ignore: cast_nullable_to_non_nullable
  407. as String?,
  408. introduce: freezed == introduce
  409. ? _value.introduce
  410. : introduce // ignore: cast_nullable_to_non_nullable
  411. as String?,
  412. orgPrice: freezed == orgPrice
  413. ? _value.orgPrice
  414. : orgPrice // ignore: cast_nullable_to_non_nullable
  415. as double?,
  416. price: freezed == price
  417. ? _value.price
  418. : price // ignore: cast_nullable_to_non_nullable
  419. as double?,
  420. tag: freezed == tag
  421. ? _value.tag
  422. : tag // ignore: cast_nullable_to_non_nullable
  423. as String?,
  424. tagType: freezed == tagType
  425. ? _value.tagType
  426. : tagType // ignore: cast_nullable_to_non_nullable
  427. as int?,
  428. currency: freezed == currency
  429. ? _value.currency
  430. : currency // ignore: cast_nullable_to_non_nullable
  431. as int?,
  432. recommend: freezed == recommend
  433. ? _value.recommend
  434. : recommend // ignore: cast_nullable_to_non_nullable
  435. as bool?,
  436. isDefault: freezed == isDefault
  437. ? _value.isDefault
  438. : isDefault // ignore: cast_nullable_to_non_nullable
  439. as bool?,
  440. sort: freezed == sort
  441. ? _value.sort
  442. : sort // ignore: cast_nullable_to_non_nullable
  443. as int?,
  444. deviceLimit: freezed == deviceLimit
  445. ? _value.deviceLimit
  446. : deviceLimit // ignore: cast_nullable_to_non_nullable
  447. as int?,
  448. isSubscribe: freezed == isSubscribe
  449. ? _value.isSubscribe
  450. : isSubscribe // ignore: cast_nullable_to_non_nullable
  451. as bool?,
  452. subscribeType: freezed == subscribeType
  453. ? _value.subscribeType
  454. : subscribeType // ignore: cast_nullable_to_non_nullable
  455. as int?,
  456. subscribePeriodValue: freezed == subscribePeriodValue
  457. ? _value.subscribePeriodValue
  458. : subscribePeriodValue // ignore: cast_nullable_to_non_nullable
  459. as int?,
  460. payoutType: freezed == payoutType
  461. ? _value.payoutType
  462. : payoutType // ignore: cast_nullable_to_non_nullable
  463. as String?,
  464. payoutData: freezed == payoutData
  465. ? _value.payoutData
  466. : payoutData // ignore: cast_nullable_to_non_nullable
  467. as String?,
  468. ),
  469. );
  470. }
  471. }
  472. /// @nodoc
  473. @JsonSerializable()
  474. class _$ChannelPlanImpl with DiagnosticableTreeMixin implements _ChannelPlan {
  475. const _$ChannelPlanImpl({
  476. this.channelItemId,
  477. this.title,
  478. this.subTitle,
  479. this.introduce,
  480. this.orgPrice,
  481. this.price,
  482. this.tag,
  483. this.tagType,
  484. this.currency,
  485. this.recommend,
  486. this.isDefault,
  487. this.sort,
  488. this.deviceLimit,
  489. this.isSubscribe,
  490. this.subscribeType,
  491. this.subscribePeriodValue,
  492. this.payoutType,
  493. this.payoutData,
  494. });
  495. factory _$ChannelPlanImpl.fromJson(Map<String, dynamic> json) =>
  496. _$$ChannelPlanImplFromJson(json);
  497. @override
  498. final String? channelItemId;
  499. @override
  500. final String? title;
  501. @override
  502. final String? subTitle;
  503. @override
  504. final String? introduce;
  505. @override
  506. final double? orgPrice;
  507. @override
  508. final double? price;
  509. @override
  510. final String? tag;
  511. @override
  512. final int? tagType;
  513. @override
  514. final int? currency;
  515. @override
  516. final bool? recommend;
  517. @override
  518. final bool? isDefault;
  519. @override
  520. final int? sort;
  521. @override
  522. final int? deviceLimit;
  523. @override
  524. final bool? isSubscribe;
  525. @override
  526. final int? subscribeType;
  527. @override
  528. final int? subscribePeriodValue;
  529. @override
  530. final String? payoutType;
  531. @override
  532. final String? payoutData;
  533. @override
  534. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  535. return 'ChannelPlan(channelItemId: $channelItemId, title: $title, subTitle: $subTitle, introduce: $introduce, orgPrice: $orgPrice, price: $price, tag: $tag, tagType: $tagType, currency: $currency, recommend: $recommend, isDefault: $isDefault, sort: $sort, deviceLimit: $deviceLimit, isSubscribe: $isSubscribe, subscribeType: $subscribeType, subscribePeriodValue: $subscribePeriodValue, payoutType: $payoutType, payoutData: $payoutData)';
  536. }
  537. @override
  538. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  539. super.debugFillProperties(properties);
  540. properties
  541. ..add(DiagnosticsProperty('type', 'ChannelPlan'))
  542. ..add(DiagnosticsProperty('channelItemId', channelItemId))
  543. ..add(DiagnosticsProperty('title', title))
  544. ..add(DiagnosticsProperty('subTitle', subTitle))
  545. ..add(DiagnosticsProperty('introduce', introduce))
  546. ..add(DiagnosticsProperty('orgPrice', orgPrice))
  547. ..add(DiagnosticsProperty('price', price))
  548. ..add(DiagnosticsProperty('tag', tag))
  549. ..add(DiagnosticsProperty('tagType', tagType))
  550. ..add(DiagnosticsProperty('currency', currency))
  551. ..add(DiagnosticsProperty('recommend', recommend))
  552. ..add(DiagnosticsProperty('isDefault', isDefault))
  553. ..add(DiagnosticsProperty('sort', sort))
  554. ..add(DiagnosticsProperty('deviceLimit', deviceLimit))
  555. ..add(DiagnosticsProperty('isSubscribe', isSubscribe))
  556. ..add(DiagnosticsProperty('subscribeType', subscribeType))
  557. ..add(DiagnosticsProperty('subscribePeriodValue', subscribePeriodValue))
  558. ..add(DiagnosticsProperty('payoutType', payoutType))
  559. ..add(DiagnosticsProperty('payoutData', payoutData));
  560. }
  561. @override
  562. bool operator ==(Object other) {
  563. return identical(this, other) ||
  564. (other.runtimeType == runtimeType &&
  565. other is _$ChannelPlanImpl &&
  566. (identical(other.channelItemId, channelItemId) ||
  567. other.channelItemId == channelItemId) &&
  568. (identical(other.title, title) || other.title == title) &&
  569. (identical(other.subTitle, subTitle) ||
  570. other.subTitle == subTitle) &&
  571. (identical(other.introduce, introduce) ||
  572. other.introduce == introduce) &&
  573. (identical(other.orgPrice, orgPrice) ||
  574. other.orgPrice == orgPrice) &&
  575. (identical(other.price, price) || other.price == price) &&
  576. (identical(other.tag, tag) || other.tag == tag) &&
  577. (identical(other.tagType, tagType) || other.tagType == tagType) &&
  578. (identical(other.currency, currency) ||
  579. other.currency == currency) &&
  580. (identical(other.recommend, recommend) ||
  581. other.recommend == recommend) &&
  582. (identical(other.isDefault, isDefault) ||
  583. other.isDefault == isDefault) &&
  584. (identical(other.sort, sort) || other.sort == sort) &&
  585. (identical(other.deviceLimit, deviceLimit) ||
  586. other.deviceLimit == deviceLimit) &&
  587. (identical(other.isSubscribe, isSubscribe) ||
  588. other.isSubscribe == isSubscribe) &&
  589. (identical(other.subscribeType, subscribeType) ||
  590. other.subscribeType == subscribeType) &&
  591. (identical(other.subscribePeriodValue, subscribePeriodValue) ||
  592. other.subscribePeriodValue == subscribePeriodValue) &&
  593. (identical(other.payoutType, payoutType) ||
  594. other.payoutType == payoutType) &&
  595. (identical(other.payoutData, payoutData) ||
  596. other.payoutData == payoutData));
  597. }
  598. @JsonKey(includeFromJson: false, includeToJson: false)
  599. @override
  600. int get hashCode => Object.hash(
  601. runtimeType,
  602. channelItemId,
  603. title,
  604. subTitle,
  605. introduce,
  606. orgPrice,
  607. price,
  608. tag,
  609. tagType,
  610. currency,
  611. recommend,
  612. isDefault,
  613. sort,
  614. deviceLimit,
  615. isSubscribe,
  616. subscribeType,
  617. subscribePeriodValue,
  618. payoutType,
  619. payoutData,
  620. );
  621. /// Create a copy of ChannelPlan
  622. /// with the given fields replaced by the non-null parameter values.
  623. @JsonKey(includeFromJson: false, includeToJson: false)
  624. @override
  625. @pragma('vm:prefer-inline')
  626. _$$ChannelPlanImplCopyWith<_$ChannelPlanImpl> get copyWith =>
  627. __$$ChannelPlanImplCopyWithImpl<_$ChannelPlanImpl>(this, _$identity);
  628. @override
  629. Map<String, dynamic> toJson() {
  630. return _$$ChannelPlanImplToJson(this);
  631. }
  632. }
  633. abstract class _ChannelPlan implements ChannelPlan {
  634. const factory _ChannelPlan({
  635. final String? channelItemId,
  636. final String? title,
  637. final String? subTitle,
  638. final String? introduce,
  639. final double? orgPrice,
  640. final double? price,
  641. final String? tag,
  642. final int? tagType,
  643. final int? currency,
  644. final bool? recommend,
  645. final bool? isDefault,
  646. final int? sort,
  647. final int? deviceLimit,
  648. final bool? isSubscribe,
  649. final int? subscribeType,
  650. final int? subscribePeriodValue,
  651. final String? payoutType,
  652. final String? payoutData,
  653. }) = _$ChannelPlanImpl;
  654. factory _ChannelPlan.fromJson(Map<String, dynamic> json) =
  655. _$ChannelPlanImpl.fromJson;
  656. @override
  657. String? get channelItemId;
  658. @override
  659. String? get title;
  660. @override
  661. String? get subTitle;
  662. @override
  663. String? get introduce;
  664. @override
  665. double? get orgPrice;
  666. @override
  667. double? get price;
  668. @override
  669. String? get tag;
  670. @override
  671. int? get tagType;
  672. @override
  673. int? get currency;
  674. @override
  675. bool? get recommend;
  676. @override
  677. bool? get isDefault;
  678. @override
  679. int? get sort;
  680. @override
  681. int? get deviceLimit;
  682. @override
  683. bool? get isSubscribe;
  684. @override
  685. int? get subscribeType;
  686. @override
  687. int? get subscribePeriodValue;
  688. @override
  689. String? get payoutType;
  690. @override
  691. String? get payoutData;
  692. /// Create a copy of ChannelPlan
  693. /// with the given fields replaced by the non-null parameter values.
  694. @override
  695. @JsonKey(includeFromJson: false, includeToJson: false)
  696. _$$ChannelPlanImplCopyWith<_$ChannelPlanImpl> get copyWith =>
  697. throw _privateConstructorUsedError;
  698. }