groups.freezed.dart 35 KB

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