banner_list.freezed.dart 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089
  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 'banner_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. BannerList _$BannerListFromJson(Map<String, dynamic> json) {
  14. return _BannerList.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$BannerList {
  18. Location? get location => throw _privateConstructorUsedError;
  19. Banner? get bannerInfo => throw _privateConstructorUsedError;
  20. List<Banner>? get list => throw _privateConstructorUsedError;
  21. /// Serializes this BannerList to a JSON map.
  22. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  23. /// Create a copy of BannerList
  24. /// with the given fields replaced by the non-null parameter values.
  25. @JsonKey(includeFromJson: false, includeToJson: false)
  26. $BannerListCopyWith<BannerList> get copyWith =>
  27. throw _privateConstructorUsedError;
  28. }
  29. /// @nodoc
  30. abstract class $BannerListCopyWith<$Res> {
  31. factory $BannerListCopyWith(
  32. BannerList value,
  33. $Res Function(BannerList) then,
  34. ) = _$BannerListCopyWithImpl<$Res, BannerList>;
  35. @useResult
  36. $Res call({Location? location, Banner? bannerInfo, List<Banner>? list});
  37. $LocationCopyWith<$Res>? get location;
  38. $BannerCopyWith<$Res>? get bannerInfo;
  39. }
  40. /// @nodoc
  41. class _$BannerListCopyWithImpl<$Res, $Val extends BannerList>
  42. implements $BannerListCopyWith<$Res> {
  43. _$BannerListCopyWithImpl(this._value, this._then);
  44. // ignore: unused_field
  45. final $Val _value;
  46. // ignore: unused_field
  47. final $Res Function($Val) _then;
  48. /// Create a copy of BannerList
  49. /// with the given fields replaced by the non-null parameter values.
  50. @pragma('vm:prefer-inline')
  51. @override
  52. $Res call({
  53. Object? location = freezed,
  54. Object? bannerInfo = freezed,
  55. Object? list = freezed,
  56. }) {
  57. return _then(
  58. _value.copyWith(
  59. location: freezed == location
  60. ? _value.location
  61. : location // ignore: cast_nullable_to_non_nullable
  62. as Location?,
  63. bannerInfo: freezed == bannerInfo
  64. ? _value.bannerInfo
  65. : bannerInfo // ignore: cast_nullable_to_non_nullable
  66. as Banner?,
  67. list: freezed == list
  68. ? _value.list
  69. : list // ignore: cast_nullable_to_non_nullable
  70. as List<Banner>?,
  71. )
  72. as $Val,
  73. );
  74. }
  75. /// Create a copy of BannerList
  76. /// with the given fields replaced by the non-null parameter values.
  77. @override
  78. @pragma('vm:prefer-inline')
  79. $LocationCopyWith<$Res>? get location {
  80. if (_value.location == null) {
  81. return null;
  82. }
  83. return $LocationCopyWith<$Res>(_value.location!, (value) {
  84. return _then(_value.copyWith(location: value) as $Val);
  85. });
  86. }
  87. /// Create a copy of BannerList
  88. /// with the given fields replaced by the non-null parameter values.
  89. @override
  90. @pragma('vm:prefer-inline')
  91. $BannerCopyWith<$Res>? get bannerInfo {
  92. if (_value.bannerInfo == null) {
  93. return null;
  94. }
  95. return $BannerCopyWith<$Res>(_value.bannerInfo!, (value) {
  96. return _then(_value.copyWith(bannerInfo: value) as $Val);
  97. });
  98. }
  99. }
  100. /// @nodoc
  101. abstract class _$$BannerListImplCopyWith<$Res>
  102. implements $BannerListCopyWith<$Res> {
  103. factory _$$BannerListImplCopyWith(
  104. _$BannerListImpl value,
  105. $Res Function(_$BannerListImpl) then,
  106. ) = __$$BannerListImplCopyWithImpl<$Res>;
  107. @override
  108. @useResult
  109. $Res call({Location? location, Banner? bannerInfo, List<Banner>? list});
  110. @override
  111. $LocationCopyWith<$Res>? get location;
  112. @override
  113. $BannerCopyWith<$Res>? get bannerInfo;
  114. }
  115. /// @nodoc
  116. class __$$BannerListImplCopyWithImpl<$Res>
  117. extends _$BannerListCopyWithImpl<$Res, _$BannerListImpl>
  118. implements _$$BannerListImplCopyWith<$Res> {
  119. __$$BannerListImplCopyWithImpl(
  120. _$BannerListImpl _value,
  121. $Res Function(_$BannerListImpl) _then,
  122. ) : super(_value, _then);
  123. /// Create a copy of BannerList
  124. /// with the given fields replaced by the non-null parameter values.
  125. @pragma('vm:prefer-inline')
  126. @override
  127. $Res call({
  128. Object? location = freezed,
  129. Object? bannerInfo = freezed,
  130. Object? list = freezed,
  131. }) {
  132. return _then(
  133. _$BannerListImpl(
  134. location: freezed == location
  135. ? _value.location
  136. : location // ignore: cast_nullable_to_non_nullable
  137. as Location?,
  138. bannerInfo: freezed == bannerInfo
  139. ? _value.bannerInfo
  140. : bannerInfo // ignore: cast_nullable_to_non_nullable
  141. as Banner?,
  142. list: freezed == list
  143. ? _value._list
  144. : list // ignore: cast_nullable_to_non_nullable
  145. as List<Banner>?,
  146. ),
  147. );
  148. }
  149. }
  150. /// @nodoc
  151. @JsonSerializable()
  152. class _$BannerListImpl with DiagnosticableTreeMixin implements _BannerList {
  153. const _$BannerListImpl({
  154. this.location,
  155. this.bannerInfo,
  156. final List<Banner>? list,
  157. }) : _list = list;
  158. factory _$BannerListImpl.fromJson(Map<String, dynamic> json) =>
  159. _$$BannerListImplFromJson(json);
  160. @override
  161. final Location? location;
  162. @override
  163. final Banner? bannerInfo;
  164. final List<Banner>? _list;
  165. @override
  166. List<Banner>? get list {
  167. final value = _list;
  168. if (value == null) return null;
  169. if (_list is EqualUnmodifiableListView) return _list;
  170. // ignore: implicit_dynamic_type
  171. return EqualUnmodifiableListView(value);
  172. }
  173. @override
  174. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  175. return 'BannerList(location: $location, bannerInfo: $bannerInfo, list: $list)';
  176. }
  177. @override
  178. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  179. super.debugFillProperties(properties);
  180. properties
  181. ..add(DiagnosticsProperty('type', 'BannerList'))
  182. ..add(DiagnosticsProperty('location', location))
  183. ..add(DiagnosticsProperty('bannerInfo', bannerInfo))
  184. ..add(DiagnosticsProperty('list', list));
  185. }
  186. @override
  187. bool operator ==(Object other) {
  188. return identical(this, other) ||
  189. (other.runtimeType == runtimeType &&
  190. other is _$BannerListImpl &&
  191. (identical(other.location, location) ||
  192. other.location == location) &&
  193. (identical(other.bannerInfo, bannerInfo) ||
  194. other.bannerInfo == bannerInfo) &&
  195. const DeepCollectionEquality().equals(other._list, _list));
  196. }
  197. @JsonKey(includeFromJson: false, includeToJson: false)
  198. @override
  199. int get hashCode => Object.hash(
  200. runtimeType,
  201. location,
  202. bannerInfo,
  203. const DeepCollectionEquality().hash(_list),
  204. );
  205. /// Create a copy of BannerList
  206. /// with the given fields replaced by the non-null parameter values.
  207. @JsonKey(includeFromJson: false, includeToJson: false)
  208. @override
  209. @pragma('vm:prefer-inline')
  210. _$$BannerListImplCopyWith<_$BannerListImpl> get copyWith =>
  211. __$$BannerListImplCopyWithImpl<_$BannerListImpl>(this, _$identity);
  212. @override
  213. Map<String, dynamic> toJson() {
  214. return _$$BannerListImplToJson(this);
  215. }
  216. }
  217. abstract class _BannerList implements BannerList {
  218. const factory _BannerList({
  219. final Location? location,
  220. final Banner? bannerInfo,
  221. final List<Banner>? list,
  222. }) = _$BannerListImpl;
  223. factory _BannerList.fromJson(Map<String, dynamic> json) =
  224. _$BannerListImpl.fromJson;
  225. @override
  226. Location? get location;
  227. @override
  228. Banner? get bannerInfo;
  229. @override
  230. List<Banner>? get list;
  231. /// Create a copy of BannerList
  232. /// with the given fields replaced by the non-null parameter values.
  233. @override
  234. @JsonKey(includeFromJson: false, includeToJson: false)
  235. _$$BannerListImplCopyWith<_$BannerListImpl> get copyWith =>
  236. throw _privateConstructorUsedError;
  237. }
  238. Location _$LocationFromJson(Map<String, dynamic> json) {
  239. return _Location.fromJson(json);
  240. }
  241. /// @nodoc
  242. mixin _$Location {
  243. int? get id => throw _privateConstructorUsedError;
  244. String? get name => throw _privateConstructorUsedError;
  245. String? get code => throw _privateConstructorUsedError;
  246. String? get icon => throw _privateConstructorUsedError;
  247. String? get country => throw _privateConstructorUsedError;
  248. int? get sort => throw _privateConstructorUsedError;
  249. Coordinates? get coordinates => throw _privateConstructorUsedError;
  250. int? get userLevel => throw _privateConstructorUsedError;
  251. bool? get isTrial => throw _privateConstructorUsedError;
  252. bool? get showGDPR => throw _privateConstructorUsedError;
  253. /// Serializes this Location to a JSON map.
  254. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  255. /// Create a copy of Location
  256. /// with the given fields replaced by the non-null parameter values.
  257. @JsonKey(includeFromJson: false, includeToJson: false)
  258. $LocationCopyWith<Location> get copyWith =>
  259. throw _privateConstructorUsedError;
  260. }
  261. /// @nodoc
  262. abstract class $LocationCopyWith<$Res> {
  263. factory $LocationCopyWith(Location value, $Res Function(Location) then) =
  264. _$LocationCopyWithImpl<$Res, Location>;
  265. @useResult
  266. $Res call({
  267. int? id,
  268. String? name,
  269. String? code,
  270. String? icon,
  271. String? country,
  272. int? sort,
  273. Coordinates? coordinates,
  274. int? userLevel,
  275. bool? isTrial,
  276. bool? showGDPR,
  277. });
  278. $CoordinatesCopyWith<$Res>? get coordinates;
  279. }
  280. /// @nodoc
  281. class _$LocationCopyWithImpl<$Res, $Val extends Location>
  282. implements $LocationCopyWith<$Res> {
  283. _$LocationCopyWithImpl(this._value, this._then);
  284. // ignore: unused_field
  285. final $Val _value;
  286. // ignore: unused_field
  287. final $Res Function($Val) _then;
  288. /// Create a copy of Location
  289. /// with the given fields replaced by the non-null parameter values.
  290. @pragma('vm:prefer-inline')
  291. @override
  292. $Res call({
  293. Object? id = freezed,
  294. Object? name = freezed,
  295. Object? code = freezed,
  296. Object? icon = freezed,
  297. Object? country = freezed,
  298. Object? sort = freezed,
  299. Object? coordinates = freezed,
  300. Object? userLevel = freezed,
  301. Object? isTrial = freezed,
  302. Object? showGDPR = freezed,
  303. }) {
  304. return _then(
  305. _value.copyWith(
  306. id: freezed == id
  307. ? _value.id
  308. : id // ignore: cast_nullable_to_non_nullable
  309. as int?,
  310. name: freezed == name
  311. ? _value.name
  312. : name // ignore: cast_nullable_to_non_nullable
  313. as String?,
  314. code: freezed == code
  315. ? _value.code
  316. : code // ignore: cast_nullable_to_non_nullable
  317. as String?,
  318. icon: freezed == icon
  319. ? _value.icon
  320. : icon // ignore: cast_nullable_to_non_nullable
  321. as String?,
  322. country: freezed == country
  323. ? _value.country
  324. : country // ignore: cast_nullable_to_non_nullable
  325. as String?,
  326. sort: freezed == sort
  327. ? _value.sort
  328. : sort // ignore: cast_nullable_to_non_nullable
  329. as int?,
  330. coordinates: freezed == coordinates
  331. ? _value.coordinates
  332. : coordinates // ignore: cast_nullable_to_non_nullable
  333. as Coordinates?,
  334. userLevel: freezed == userLevel
  335. ? _value.userLevel
  336. : userLevel // ignore: cast_nullable_to_non_nullable
  337. as int?,
  338. isTrial: freezed == isTrial
  339. ? _value.isTrial
  340. : isTrial // ignore: cast_nullable_to_non_nullable
  341. as bool?,
  342. showGDPR: freezed == showGDPR
  343. ? _value.showGDPR
  344. : showGDPR // ignore: cast_nullable_to_non_nullable
  345. as bool?,
  346. )
  347. as $Val,
  348. );
  349. }
  350. /// Create a copy of Location
  351. /// with the given fields replaced by the non-null parameter values.
  352. @override
  353. @pragma('vm:prefer-inline')
  354. $CoordinatesCopyWith<$Res>? get coordinates {
  355. if (_value.coordinates == null) {
  356. return null;
  357. }
  358. return $CoordinatesCopyWith<$Res>(_value.coordinates!, (value) {
  359. return _then(_value.copyWith(coordinates: value) as $Val);
  360. });
  361. }
  362. }
  363. /// @nodoc
  364. abstract class _$$LocationImplCopyWith<$Res>
  365. implements $LocationCopyWith<$Res> {
  366. factory _$$LocationImplCopyWith(
  367. _$LocationImpl value,
  368. $Res Function(_$LocationImpl) then,
  369. ) = __$$LocationImplCopyWithImpl<$Res>;
  370. @override
  371. @useResult
  372. $Res call({
  373. int? id,
  374. String? name,
  375. String? code,
  376. String? icon,
  377. String? country,
  378. int? sort,
  379. Coordinates? coordinates,
  380. int? userLevel,
  381. bool? isTrial,
  382. bool? showGDPR,
  383. });
  384. @override
  385. $CoordinatesCopyWith<$Res>? get coordinates;
  386. }
  387. /// @nodoc
  388. class __$$LocationImplCopyWithImpl<$Res>
  389. extends _$LocationCopyWithImpl<$Res, _$LocationImpl>
  390. implements _$$LocationImplCopyWith<$Res> {
  391. __$$LocationImplCopyWithImpl(
  392. _$LocationImpl _value,
  393. $Res Function(_$LocationImpl) _then,
  394. ) : super(_value, _then);
  395. /// Create a copy of Location
  396. /// with the given fields replaced by the non-null parameter values.
  397. @pragma('vm:prefer-inline')
  398. @override
  399. $Res call({
  400. Object? id = freezed,
  401. Object? name = freezed,
  402. Object? code = freezed,
  403. Object? icon = freezed,
  404. Object? country = freezed,
  405. Object? sort = freezed,
  406. Object? coordinates = freezed,
  407. Object? userLevel = freezed,
  408. Object? isTrial = freezed,
  409. Object? showGDPR = freezed,
  410. }) {
  411. return _then(
  412. _$LocationImpl(
  413. id: freezed == id
  414. ? _value.id
  415. : id // ignore: cast_nullable_to_non_nullable
  416. as int?,
  417. name: freezed == name
  418. ? _value.name
  419. : name // ignore: cast_nullable_to_non_nullable
  420. as String?,
  421. code: freezed == code
  422. ? _value.code
  423. : code // ignore: cast_nullable_to_non_nullable
  424. as String?,
  425. icon: freezed == icon
  426. ? _value.icon
  427. : icon // ignore: cast_nullable_to_non_nullable
  428. as String?,
  429. country: freezed == country
  430. ? _value.country
  431. : country // ignore: cast_nullable_to_non_nullable
  432. as String?,
  433. sort: freezed == sort
  434. ? _value.sort
  435. : sort // ignore: cast_nullable_to_non_nullable
  436. as int?,
  437. coordinates: freezed == coordinates
  438. ? _value.coordinates
  439. : coordinates // ignore: cast_nullable_to_non_nullable
  440. as Coordinates?,
  441. userLevel: freezed == userLevel
  442. ? _value.userLevel
  443. : userLevel // ignore: cast_nullable_to_non_nullable
  444. as int?,
  445. isTrial: freezed == isTrial
  446. ? _value.isTrial
  447. : isTrial // ignore: cast_nullable_to_non_nullable
  448. as bool?,
  449. showGDPR: freezed == showGDPR
  450. ? _value.showGDPR
  451. : showGDPR // ignore: cast_nullable_to_non_nullable
  452. as bool?,
  453. ),
  454. );
  455. }
  456. }
  457. /// @nodoc
  458. @JsonSerializable()
  459. class _$LocationImpl with DiagnosticableTreeMixin implements _Location {
  460. const _$LocationImpl({
  461. this.id,
  462. this.name,
  463. this.code,
  464. this.icon,
  465. this.country,
  466. this.sort,
  467. this.coordinates,
  468. this.userLevel,
  469. this.isTrial,
  470. this.showGDPR,
  471. });
  472. factory _$LocationImpl.fromJson(Map<String, dynamic> json) =>
  473. _$$LocationImplFromJson(json);
  474. @override
  475. final int? id;
  476. @override
  477. final String? name;
  478. @override
  479. final String? code;
  480. @override
  481. final String? icon;
  482. @override
  483. final String? country;
  484. @override
  485. final int? sort;
  486. @override
  487. final Coordinates? coordinates;
  488. @override
  489. final int? userLevel;
  490. @override
  491. final bool? isTrial;
  492. @override
  493. final bool? showGDPR;
  494. @override
  495. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  496. return 'Location(id: $id, name: $name, code: $code, icon: $icon, country: $country, sort: $sort, coordinates: $coordinates, userLevel: $userLevel, isTrial: $isTrial, showGDPR: $showGDPR)';
  497. }
  498. @override
  499. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  500. super.debugFillProperties(properties);
  501. properties
  502. ..add(DiagnosticsProperty('type', 'Location'))
  503. ..add(DiagnosticsProperty('id', id))
  504. ..add(DiagnosticsProperty('name', name))
  505. ..add(DiagnosticsProperty('code', code))
  506. ..add(DiagnosticsProperty('icon', icon))
  507. ..add(DiagnosticsProperty('country', country))
  508. ..add(DiagnosticsProperty('sort', sort))
  509. ..add(DiagnosticsProperty('coordinates', coordinates))
  510. ..add(DiagnosticsProperty('userLevel', userLevel))
  511. ..add(DiagnosticsProperty('isTrial', isTrial))
  512. ..add(DiagnosticsProperty('showGDPR', showGDPR));
  513. }
  514. @override
  515. bool operator ==(Object other) {
  516. return identical(this, other) ||
  517. (other.runtimeType == runtimeType &&
  518. other is _$LocationImpl &&
  519. (identical(other.id, id) || other.id == id) &&
  520. (identical(other.name, name) || other.name == name) &&
  521. (identical(other.code, code) || other.code == code) &&
  522. (identical(other.icon, icon) || other.icon == icon) &&
  523. (identical(other.country, country) || other.country == country) &&
  524. (identical(other.sort, sort) || other.sort == sort) &&
  525. (identical(other.coordinates, coordinates) ||
  526. other.coordinates == coordinates) &&
  527. (identical(other.userLevel, userLevel) ||
  528. other.userLevel == userLevel) &&
  529. (identical(other.isTrial, isTrial) || other.isTrial == isTrial) &&
  530. (identical(other.showGDPR, showGDPR) ||
  531. other.showGDPR == showGDPR));
  532. }
  533. @JsonKey(includeFromJson: false, includeToJson: false)
  534. @override
  535. int get hashCode => Object.hash(
  536. runtimeType,
  537. id,
  538. name,
  539. code,
  540. icon,
  541. country,
  542. sort,
  543. coordinates,
  544. userLevel,
  545. isTrial,
  546. showGDPR,
  547. );
  548. /// Create a copy of Location
  549. /// with the given fields replaced by the non-null parameter values.
  550. @JsonKey(includeFromJson: false, includeToJson: false)
  551. @override
  552. @pragma('vm:prefer-inline')
  553. _$$LocationImplCopyWith<_$LocationImpl> get copyWith =>
  554. __$$LocationImplCopyWithImpl<_$LocationImpl>(this, _$identity);
  555. @override
  556. Map<String, dynamic> toJson() {
  557. return _$$LocationImplToJson(this);
  558. }
  559. }
  560. abstract class _Location implements Location {
  561. const factory _Location({
  562. final int? id,
  563. final String? name,
  564. final String? code,
  565. final String? icon,
  566. final String? country,
  567. final int? sort,
  568. final Coordinates? coordinates,
  569. final int? userLevel,
  570. final bool? isTrial,
  571. final bool? showGDPR,
  572. }) = _$LocationImpl;
  573. factory _Location.fromJson(Map<String, dynamic> json) =
  574. _$LocationImpl.fromJson;
  575. @override
  576. int? get id;
  577. @override
  578. String? get name;
  579. @override
  580. String? get code;
  581. @override
  582. String? get icon;
  583. @override
  584. String? get country;
  585. @override
  586. int? get sort;
  587. @override
  588. Coordinates? get coordinates;
  589. @override
  590. int? get userLevel;
  591. @override
  592. bool? get isTrial;
  593. @override
  594. bool? get showGDPR;
  595. /// Create a copy of Location
  596. /// with the given fields replaced by the non-null parameter values.
  597. @override
  598. @JsonKey(includeFromJson: false, includeToJson: false)
  599. _$$LocationImplCopyWith<_$LocationImpl> get copyWith =>
  600. throw _privateConstructorUsedError;
  601. }
  602. Coordinates _$CoordinatesFromJson(Map<String, dynamic> json) {
  603. return _Coordinates.fromJson(json);
  604. }
  605. /// @nodoc
  606. mixin _$Coordinates {
  607. int? get lat => throw _privateConstructorUsedError;
  608. int? get lng => throw _privateConstructorUsedError;
  609. /// Serializes this Coordinates to a JSON map.
  610. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  611. /// Create a copy of Coordinates
  612. /// with the given fields replaced by the non-null parameter values.
  613. @JsonKey(includeFromJson: false, includeToJson: false)
  614. $CoordinatesCopyWith<Coordinates> get copyWith =>
  615. throw _privateConstructorUsedError;
  616. }
  617. /// @nodoc
  618. abstract class $CoordinatesCopyWith<$Res> {
  619. factory $CoordinatesCopyWith(
  620. Coordinates value,
  621. $Res Function(Coordinates) then,
  622. ) = _$CoordinatesCopyWithImpl<$Res, Coordinates>;
  623. @useResult
  624. $Res call({int? lat, int? lng});
  625. }
  626. /// @nodoc
  627. class _$CoordinatesCopyWithImpl<$Res, $Val extends Coordinates>
  628. implements $CoordinatesCopyWith<$Res> {
  629. _$CoordinatesCopyWithImpl(this._value, this._then);
  630. // ignore: unused_field
  631. final $Val _value;
  632. // ignore: unused_field
  633. final $Res Function($Val) _then;
  634. /// Create a copy of Coordinates
  635. /// with the given fields replaced by the non-null parameter values.
  636. @pragma('vm:prefer-inline')
  637. @override
  638. $Res call({Object? lat = freezed, Object? lng = freezed}) {
  639. return _then(
  640. _value.copyWith(
  641. lat: freezed == lat
  642. ? _value.lat
  643. : lat // ignore: cast_nullable_to_non_nullable
  644. as int?,
  645. lng: freezed == lng
  646. ? _value.lng
  647. : lng // ignore: cast_nullable_to_non_nullable
  648. as int?,
  649. )
  650. as $Val,
  651. );
  652. }
  653. }
  654. /// @nodoc
  655. abstract class _$$CoordinatesImplCopyWith<$Res>
  656. implements $CoordinatesCopyWith<$Res> {
  657. factory _$$CoordinatesImplCopyWith(
  658. _$CoordinatesImpl value,
  659. $Res Function(_$CoordinatesImpl) then,
  660. ) = __$$CoordinatesImplCopyWithImpl<$Res>;
  661. @override
  662. @useResult
  663. $Res call({int? lat, int? lng});
  664. }
  665. /// @nodoc
  666. class __$$CoordinatesImplCopyWithImpl<$Res>
  667. extends _$CoordinatesCopyWithImpl<$Res, _$CoordinatesImpl>
  668. implements _$$CoordinatesImplCopyWith<$Res> {
  669. __$$CoordinatesImplCopyWithImpl(
  670. _$CoordinatesImpl _value,
  671. $Res Function(_$CoordinatesImpl) _then,
  672. ) : super(_value, _then);
  673. /// Create a copy of Coordinates
  674. /// with the given fields replaced by the non-null parameter values.
  675. @pragma('vm:prefer-inline')
  676. @override
  677. $Res call({Object? lat = freezed, Object? lng = freezed}) {
  678. return _then(
  679. _$CoordinatesImpl(
  680. lat: freezed == lat
  681. ? _value.lat
  682. : lat // ignore: cast_nullable_to_non_nullable
  683. as int?,
  684. lng: freezed == lng
  685. ? _value.lng
  686. : lng // ignore: cast_nullable_to_non_nullable
  687. as int?,
  688. ),
  689. );
  690. }
  691. }
  692. /// @nodoc
  693. @JsonSerializable()
  694. class _$CoordinatesImpl with DiagnosticableTreeMixin implements _Coordinates {
  695. const _$CoordinatesImpl({this.lat, this.lng});
  696. factory _$CoordinatesImpl.fromJson(Map<String, dynamic> json) =>
  697. _$$CoordinatesImplFromJson(json);
  698. @override
  699. final int? lat;
  700. @override
  701. final int? lng;
  702. @override
  703. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  704. return 'Coordinates(lat: $lat, lng: $lng)';
  705. }
  706. @override
  707. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  708. super.debugFillProperties(properties);
  709. properties
  710. ..add(DiagnosticsProperty('type', 'Coordinates'))
  711. ..add(DiagnosticsProperty('lat', lat))
  712. ..add(DiagnosticsProperty('lng', lng));
  713. }
  714. @override
  715. bool operator ==(Object other) {
  716. return identical(this, other) ||
  717. (other.runtimeType == runtimeType &&
  718. other is _$CoordinatesImpl &&
  719. (identical(other.lat, lat) || other.lat == lat) &&
  720. (identical(other.lng, lng) || other.lng == lng));
  721. }
  722. @JsonKey(includeFromJson: false, includeToJson: false)
  723. @override
  724. int get hashCode => Object.hash(runtimeType, lat, lng);
  725. /// Create a copy of Coordinates
  726. /// with the given fields replaced by the non-null parameter values.
  727. @JsonKey(includeFromJson: false, includeToJson: false)
  728. @override
  729. @pragma('vm:prefer-inline')
  730. _$$CoordinatesImplCopyWith<_$CoordinatesImpl> get copyWith =>
  731. __$$CoordinatesImplCopyWithImpl<_$CoordinatesImpl>(this, _$identity);
  732. @override
  733. Map<String, dynamic> toJson() {
  734. return _$$CoordinatesImplToJson(this);
  735. }
  736. }
  737. abstract class _Coordinates implements Coordinates {
  738. const factory _Coordinates({final int? lat, final int? lng}) =
  739. _$CoordinatesImpl;
  740. factory _Coordinates.fromJson(Map<String, dynamic> json) =
  741. _$CoordinatesImpl.fromJson;
  742. @override
  743. int? get lat;
  744. @override
  745. int? get lng;
  746. /// Create a copy of Coordinates
  747. /// with the given fields replaced by the non-null parameter values.
  748. @override
  749. @JsonKey(includeFromJson: false, includeToJson: false)
  750. _$$CoordinatesImplCopyWith<_$CoordinatesImpl> get copyWith =>
  751. throw _privateConstructorUsedError;
  752. }
  753. Banner _$BannerFromJson(Map<String, dynamic> json) {
  754. return _Banner.fromJson(json);
  755. }
  756. /// @nodoc
  757. mixin _$Banner {
  758. String? get action => throw _privateConstructorUsedError;
  759. String? get img => throw _privateConstructorUsedError;
  760. String? get title => throw _privateConstructorUsedError;
  761. String? get content => throw _privateConstructorUsedError;
  762. String? get data => throw _privateConstructorUsedError;
  763. /// Serializes this Banner to a JSON map.
  764. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  765. /// Create a copy of Banner
  766. /// with the given fields replaced by the non-null parameter values.
  767. @JsonKey(includeFromJson: false, includeToJson: false)
  768. $BannerCopyWith<Banner> get copyWith => throw _privateConstructorUsedError;
  769. }
  770. /// @nodoc
  771. abstract class $BannerCopyWith<$Res> {
  772. factory $BannerCopyWith(Banner value, $Res Function(Banner) then) =
  773. _$BannerCopyWithImpl<$Res, Banner>;
  774. @useResult
  775. $Res call({
  776. String? action,
  777. String? img,
  778. String? title,
  779. String? content,
  780. String? data,
  781. });
  782. }
  783. /// @nodoc
  784. class _$BannerCopyWithImpl<$Res, $Val extends Banner>
  785. implements $BannerCopyWith<$Res> {
  786. _$BannerCopyWithImpl(this._value, this._then);
  787. // ignore: unused_field
  788. final $Val _value;
  789. // ignore: unused_field
  790. final $Res Function($Val) _then;
  791. /// Create a copy of Banner
  792. /// with the given fields replaced by the non-null parameter values.
  793. @pragma('vm:prefer-inline')
  794. @override
  795. $Res call({
  796. Object? action = freezed,
  797. Object? img = freezed,
  798. Object? title = freezed,
  799. Object? content = freezed,
  800. Object? data = freezed,
  801. }) {
  802. return _then(
  803. _value.copyWith(
  804. action: freezed == action
  805. ? _value.action
  806. : action // ignore: cast_nullable_to_non_nullable
  807. as String?,
  808. img: freezed == img
  809. ? _value.img
  810. : img // ignore: cast_nullable_to_non_nullable
  811. as String?,
  812. title: freezed == title
  813. ? _value.title
  814. : title // ignore: cast_nullable_to_non_nullable
  815. as String?,
  816. content: freezed == content
  817. ? _value.content
  818. : content // ignore: cast_nullable_to_non_nullable
  819. as String?,
  820. data: freezed == data
  821. ? _value.data
  822. : data // ignore: cast_nullable_to_non_nullable
  823. as String?,
  824. )
  825. as $Val,
  826. );
  827. }
  828. }
  829. /// @nodoc
  830. abstract class _$$BannerImplCopyWith<$Res> implements $BannerCopyWith<$Res> {
  831. factory _$$BannerImplCopyWith(
  832. _$BannerImpl value,
  833. $Res Function(_$BannerImpl) then,
  834. ) = __$$BannerImplCopyWithImpl<$Res>;
  835. @override
  836. @useResult
  837. $Res call({
  838. String? action,
  839. String? img,
  840. String? title,
  841. String? content,
  842. String? data,
  843. });
  844. }
  845. /// @nodoc
  846. class __$$BannerImplCopyWithImpl<$Res>
  847. extends _$BannerCopyWithImpl<$Res, _$BannerImpl>
  848. implements _$$BannerImplCopyWith<$Res> {
  849. __$$BannerImplCopyWithImpl(
  850. _$BannerImpl _value,
  851. $Res Function(_$BannerImpl) _then,
  852. ) : super(_value, _then);
  853. /// Create a copy of Banner
  854. /// with the given fields replaced by the non-null parameter values.
  855. @pragma('vm:prefer-inline')
  856. @override
  857. $Res call({
  858. Object? action = freezed,
  859. Object? img = freezed,
  860. Object? title = freezed,
  861. Object? content = freezed,
  862. Object? data = freezed,
  863. }) {
  864. return _then(
  865. _$BannerImpl(
  866. action: freezed == action
  867. ? _value.action
  868. : action // ignore: cast_nullable_to_non_nullable
  869. as String?,
  870. img: freezed == img
  871. ? _value.img
  872. : img // ignore: cast_nullable_to_non_nullable
  873. as String?,
  874. title: freezed == title
  875. ? _value.title
  876. : title // ignore: cast_nullable_to_non_nullable
  877. as String?,
  878. content: freezed == content
  879. ? _value.content
  880. : content // ignore: cast_nullable_to_non_nullable
  881. as String?,
  882. data: freezed == data
  883. ? _value.data
  884. : data // ignore: cast_nullable_to_non_nullable
  885. as String?,
  886. ),
  887. );
  888. }
  889. }
  890. /// @nodoc
  891. @JsonSerializable()
  892. class _$BannerImpl with DiagnosticableTreeMixin implements _Banner {
  893. const _$BannerImpl({
  894. this.action,
  895. this.img,
  896. this.title,
  897. this.content,
  898. this.data,
  899. });
  900. factory _$BannerImpl.fromJson(Map<String, dynamic> json) =>
  901. _$$BannerImplFromJson(json);
  902. @override
  903. final String? action;
  904. @override
  905. final String? img;
  906. @override
  907. final String? title;
  908. @override
  909. final String? content;
  910. @override
  911. final String? data;
  912. @override
  913. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  914. return 'Banner(action: $action, img: $img, title: $title, content: $content, data: $data)';
  915. }
  916. @override
  917. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  918. super.debugFillProperties(properties);
  919. properties
  920. ..add(DiagnosticsProperty('type', 'Banner'))
  921. ..add(DiagnosticsProperty('action', action))
  922. ..add(DiagnosticsProperty('img', img))
  923. ..add(DiagnosticsProperty('title', title))
  924. ..add(DiagnosticsProperty('content', content))
  925. ..add(DiagnosticsProperty('data', data));
  926. }
  927. @override
  928. bool operator ==(Object other) {
  929. return identical(this, other) ||
  930. (other.runtimeType == runtimeType &&
  931. other is _$BannerImpl &&
  932. (identical(other.action, action) || other.action == action) &&
  933. (identical(other.img, img) || other.img == img) &&
  934. (identical(other.title, title) || other.title == title) &&
  935. (identical(other.content, content) || other.content == content) &&
  936. (identical(other.data, data) || other.data == data));
  937. }
  938. @JsonKey(includeFromJson: false, includeToJson: false)
  939. @override
  940. int get hashCode =>
  941. Object.hash(runtimeType, action, img, title, content, data);
  942. /// Create a copy of Banner
  943. /// with the given fields replaced by the non-null parameter values.
  944. @JsonKey(includeFromJson: false, includeToJson: false)
  945. @override
  946. @pragma('vm:prefer-inline')
  947. _$$BannerImplCopyWith<_$BannerImpl> get copyWith =>
  948. __$$BannerImplCopyWithImpl<_$BannerImpl>(this, _$identity);
  949. @override
  950. Map<String, dynamic> toJson() {
  951. return _$$BannerImplToJson(this);
  952. }
  953. }
  954. abstract class _Banner implements Banner {
  955. const factory _Banner({
  956. final String? action,
  957. final String? img,
  958. final String? title,
  959. final String? content,
  960. final String? data,
  961. }) = _$BannerImpl;
  962. factory _Banner.fromJson(Map<String, dynamic> json) = _$BannerImpl.fromJson;
  963. @override
  964. String? get action;
  965. @override
  966. String? get img;
  967. @override
  968. String? get title;
  969. @override
  970. String? get content;
  971. @override
  972. String? get data;
  973. /// Create a copy of Banner
  974. /// with the given fields replaced by the non-null parameter values.
  975. @override
  976. @JsonKey(includeFromJson: false, includeToJson: false)
  977. _$$BannerImplCopyWith<_$BannerImpl> get copyWith =>
  978. throw _privateConstructorUsedError;
  979. }