launch.freezed.dart 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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 'launch.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. Launch _$LaunchFromJson(Map<String, dynamic> json) {
  14. return _Launch.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$Launch {
  18. User? get userConfig => throw _privateConstructorUsedError;
  19. AppConfig? get appConfig => throw _privateConstructorUsedError;
  20. Upgrade? get upgradeConfig => throw _privateConstructorUsedError;
  21. AdConfig? get adConfig => throw _privateConstructorUsedError;
  22. Groups? get groups => throw _privateConstructorUsedError;
  23. List<Ranks>? get ranks => throw _privateConstructorUsedError;
  24. dynamic get exData => throw _privateConstructorUsedError;
  25. NodesConfig? get nodesConfig => throw _privateConstructorUsedError;
  26. /// Serializes this Launch to a JSON map.
  27. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  28. /// Create a copy of Launch
  29. /// with the given fields replaced by the non-null parameter values.
  30. @JsonKey(includeFromJson: false, includeToJson: false)
  31. $LaunchCopyWith<Launch> get copyWith => throw _privateConstructorUsedError;
  32. }
  33. /// @nodoc
  34. abstract class $LaunchCopyWith<$Res> {
  35. factory $LaunchCopyWith(Launch value, $Res Function(Launch) then) =
  36. _$LaunchCopyWithImpl<$Res, Launch>;
  37. @useResult
  38. $Res call({
  39. User? userConfig,
  40. AppConfig? appConfig,
  41. Upgrade? upgradeConfig,
  42. AdConfig? adConfig,
  43. Groups? groups,
  44. List<Ranks>? ranks,
  45. dynamic exData,
  46. NodesConfig? nodesConfig,
  47. });
  48. $UserCopyWith<$Res>? get userConfig;
  49. $AppConfigCopyWith<$Res>? get appConfig;
  50. $UpgradeCopyWith<$Res>? get upgradeConfig;
  51. $AdConfigCopyWith<$Res>? get adConfig;
  52. $GroupsCopyWith<$Res>? get groups;
  53. $NodesConfigCopyWith<$Res>? get nodesConfig;
  54. }
  55. /// @nodoc
  56. class _$LaunchCopyWithImpl<$Res, $Val extends Launch>
  57. implements $LaunchCopyWith<$Res> {
  58. _$LaunchCopyWithImpl(this._value, this._then);
  59. // ignore: unused_field
  60. final $Val _value;
  61. // ignore: unused_field
  62. final $Res Function($Val) _then;
  63. /// Create a copy of Launch
  64. /// with the given fields replaced by the non-null parameter values.
  65. @pragma('vm:prefer-inline')
  66. @override
  67. $Res call({
  68. Object? userConfig = freezed,
  69. Object? appConfig = freezed,
  70. Object? upgradeConfig = freezed,
  71. Object? adConfig = freezed,
  72. Object? groups = freezed,
  73. Object? ranks = freezed,
  74. Object? exData = freezed,
  75. Object? nodesConfig = freezed,
  76. }) {
  77. return _then(
  78. _value.copyWith(
  79. userConfig: freezed == userConfig
  80. ? _value.userConfig
  81. : userConfig // ignore: cast_nullable_to_non_nullable
  82. as User?,
  83. appConfig: freezed == appConfig
  84. ? _value.appConfig
  85. : appConfig // ignore: cast_nullable_to_non_nullable
  86. as AppConfig?,
  87. upgradeConfig: freezed == upgradeConfig
  88. ? _value.upgradeConfig
  89. : upgradeConfig // ignore: cast_nullable_to_non_nullable
  90. as Upgrade?,
  91. adConfig: freezed == adConfig
  92. ? _value.adConfig
  93. : adConfig // ignore: cast_nullable_to_non_nullable
  94. as AdConfig?,
  95. groups: freezed == groups
  96. ? _value.groups
  97. : groups // ignore: cast_nullable_to_non_nullable
  98. as Groups?,
  99. ranks: freezed == ranks
  100. ? _value.ranks
  101. : ranks // ignore: cast_nullable_to_non_nullable
  102. as List<Ranks>?,
  103. exData: freezed == exData
  104. ? _value.exData
  105. : exData // ignore: cast_nullable_to_non_nullable
  106. as dynamic,
  107. nodesConfig: freezed == nodesConfig
  108. ? _value.nodesConfig
  109. : nodesConfig // ignore: cast_nullable_to_non_nullable
  110. as NodesConfig?,
  111. )
  112. as $Val,
  113. );
  114. }
  115. /// Create a copy of Launch
  116. /// with the given fields replaced by the non-null parameter values.
  117. @override
  118. @pragma('vm:prefer-inline')
  119. $UserCopyWith<$Res>? get userConfig {
  120. if (_value.userConfig == null) {
  121. return null;
  122. }
  123. return $UserCopyWith<$Res>(_value.userConfig!, (value) {
  124. return _then(_value.copyWith(userConfig: value) as $Val);
  125. });
  126. }
  127. /// Create a copy of Launch
  128. /// with the given fields replaced by the non-null parameter values.
  129. @override
  130. @pragma('vm:prefer-inline')
  131. $AppConfigCopyWith<$Res>? get appConfig {
  132. if (_value.appConfig == null) {
  133. return null;
  134. }
  135. return $AppConfigCopyWith<$Res>(_value.appConfig!, (value) {
  136. return _then(_value.copyWith(appConfig: value) as $Val);
  137. });
  138. }
  139. /// Create a copy of Launch
  140. /// with the given fields replaced by the non-null parameter values.
  141. @override
  142. @pragma('vm:prefer-inline')
  143. $UpgradeCopyWith<$Res>? get upgradeConfig {
  144. if (_value.upgradeConfig == null) {
  145. return null;
  146. }
  147. return $UpgradeCopyWith<$Res>(_value.upgradeConfig!, (value) {
  148. return _then(_value.copyWith(upgradeConfig: value) as $Val);
  149. });
  150. }
  151. /// Create a copy of Launch
  152. /// with the given fields replaced by the non-null parameter values.
  153. @override
  154. @pragma('vm:prefer-inline')
  155. $AdConfigCopyWith<$Res>? get adConfig {
  156. if (_value.adConfig == null) {
  157. return null;
  158. }
  159. return $AdConfigCopyWith<$Res>(_value.adConfig!, (value) {
  160. return _then(_value.copyWith(adConfig: value) as $Val);
  161. });
  162. }
  163. /// Create a copy of Launch
  164. /// with the given fields replaced by the non-null parameter values.
  165. @override
  166. @pragma('vm:prefer-inline')
  167. $GroupsCopyWith<$Res>? get groups {
  168. if (_value.groups == null) {
  169. return null;
  170. }
  171. return $GroupsCopyWith<$Res>(_value.groups!, (value) {
  172. return _then(_value.copyWith(groups: value) as $Val);
  173. });
  174. }
  175. /// Create a copy of Launch
  176. /// with the given fields replaced by the non-null parameter values.
  177. @override
  178. @pragma('vm:prefer-inline')
  179. $NodesConfigCopyWith<$Res>? get nodesConfig {
  180. if (_value.nodesConfig == null) {
  181. return null;
  182. }
  183. return $NodesConfigCopyWith<$Res>(_value.nodesConfig!, (value) {
  184. return _then(_value.copyWith(nodesConfig: value) as $Val);
  185. });
  186. }
  187. }
  188. /// @nodoc
  189. abstract class _$$LaunchImplCopyWith<$Res> implements $LaunchCopyWith<$Res> {
  190. factory _$$LaunchImplCopyWith(
  191. _$LaunchImpl value,
  192. $Res Function(_$LaunchImpl) then,
  193. ) = __$$LaunchImplCopyWithImpl<$Res>;
  194. @override
  195. @useResult
  196. $Res call({
  197. User? userConfig,
  198. AppConfig? appConfig,
  199. Upgrade? upgradeConfig,
  200. AdConfig? adConfig,
  201. Groups? groups,
  202. List<Ranks>? ranks,
  203. dynamic exData,
  204. NodesConfig? nodesConfig,
  205. });
  206. @override
  207. $UserCopyWith<$Res>? get userConfig;
  208. @override
  209. $AppConfigCopyWith<$Res>? get appConfig;
  210. @override
  211. $UpgradeCopyWith<$Res>? get upgradeConfig;
  212. @override
  213. $AdConfigCopyWith<$Res>? get adConfig;
  214. @override
  215. $GroupsCopyWith<$Res>? get groups;
  216. @override
  217. $NodesConfigCopyWith<$Res>? get nodesConfig;
  218. }
  219. /// @nodoc
  220. class __$$LaunchImplCopyWithImpl<$Res>
  221. extends _$LaunchCopyWithImpl<$Res, _$LaunchImpl>
  222. implements _$$LaunchImplCopyWith<$Res> {
  223. __$$LaunchImplCopyWithImpl(
  224. _$LaunchImpl _value,
  225. $Res Function(_$LaunchImpl) _then,
  226. ) : super(_value, _then);
  227. /// Create a copy of Launch
  228. /// with the given fields replaced by the non-null parameter values.
  229. @pragma('vm:prefer-inline')
  230. @override
  231. $Res call({
  232. Object? userConfig = freezed,
  233. Object? appConfig = freezed,
  234. Object? upgradeConfig = freezed,
  235. Object? adConfig = freezed,
  236. Object? groups = freezed,
  237. Object? ranks = freezed,
  238. Object? exData = freezed,
  239. Object? nodesConfig = freezed,
  240. }) {
  241. return _then(
  242. _$LaunchImpl(
  243. userConfig: freezed == userConfig
  244. ? _value.userConfig
  245. : userConfig // ignore: cast_nullable_to_non_nullable
  246. as User?,
  247. appConfig: freezed == appConfig
  248. ? _value.appConfig
  249. : appConfig // ignore: cast_nullable_to_non_nullable
  250. as AppConfig?,
  251. upgradeConfig: freezed == upgradeConfig
  252. ? _value.upgradeConfig
  253. : upgradeConfig // ignore: cast_nullable_to_non_nullable
  254. as Upgrade?,
  255. adConfig: freezed == adConfig
  256. ? _value.adConfig
  257. : adConfig // ignore: cast_nullable_to_non_nullable
  258. as AdConfig?,
  259. groups: freezed == groups
  260. ? _value.groups
  261. : groups // ignore: cast_nullable_to_non_nullable
  262. as Groups?,
  263. ranks: freezed == ranks
  264. ? _value._ranks
  265. : ranks // ignore: cast_nullable_to_non_nullable
  266. as List<Ranks>?,
  267. exData: freezed == exData
  268. ? _value.exData
  269. : exData // ignore: cast_nullable_to_non_nullable
  270. as dynamic,
  271. nodesConfig: freezed == nodesConfig
  272. ? _value.nodesConfig
  273. : nodesConfig // ignore: cast_nullable_to_non_nullable
  274. as NodesConfig?,
  275. ),
  276. );
  277. }
  278. }
  279. /// @nodoc
  280. @JsonSerializable()
  281. class _$LaunchImpl with DiagnosticableTreeMixin implements _Launch {
  282. const _$LaunchImpl({
  283. this.userConfig,
  284. this.appConfig,
  285. this.upgradeConfig,
  286. this.adConfig,
  287. this.groups,
  288. final List<Ranks>? ranks,
  289. this.exData,
  290. this.nodesConfig,
  291. }) : _ranks = ranks;
  292. factory _$LaunchImpl.fromJson(Map<String, dynamic> json) =>
  293. _$$LaunchImplFromJson(json);
  294. @override
  295. final User? userConfig;
  296. @override
  297. final AppConfig? appConfig;
  298. @override
  299. final Upgrade? upgradeConfig;
  300. @override
  301. final AdConfig? adConfig;
  302. @override
  303. final Groups? groups;
  304. final List<Ranks>? _ranks;
  305. @override
  306. List<Ranks>? get ranks {
  307. final value = _ranks;
  308. if (value == null) return null;
  309. if (_ranks is EqualUnmodifiableListView) return _ranks;
  310. // ignore: implicit_dynamic_type
  311. return EqualUnmodifiableListView(value);
  312. }
  313. @override
  314. final dynamic exData;
  315. @override
  316. final NodesConfig? nodesConfig;
  317. @override
  318. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  319. return 'Launch(userConfig: $userConfig, appConfig: $appConfig, upgradeConfig: $upgradeConfig, adConfig: $adConfig, groups: $groups, ranks: $ranks, exData: $exData, nodesConfig: $nodesConfig)';
  320. }
  321. @override
  322. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  323. super.debugFillProperties(properties);
  324. properties
  325. ..add(DiagnosticsProperty('type', 'Launch'))
  326. ..add(DiagnosticsProperty('userConfig', userConfig))
  327. ..add(DiagnosticsProperty('appConfig', appConfig))
  328. ..add(DiagnosticsProperty('upgradeConfig', upgradeConfig))
  329. ..add(DiagnosticsProperty('adConfig', adConfig))
  330. ..add(DiagnosticsProperty('groups', groups))
  331. ..add(DiagnosticsProperty('ranks', ranks))
  332. ..add(DiagnosticsProperty('exData', exData))
  333. ..add(DiagnosticsProperty('nodesConfig', nodesConfig));
  334. }
  335. @override
  336. bool operator ==(Object other) {
  337. return identical(this, other) ||
  338. (other.runtimeType == runtimeType &&
  339. other is _$LaunchImpl &&
  340. (identical(other.userConfig, userConfig) ||
  341. other.userConfig == userConfig) &&
  342. (identical(other.appConfig, appConfig) ||
  343. other.appConfig == appConfig) &&
  344. (identical(other.upgradeConfig, upgradeConfig) ||
  345. other.upgradeConfig == upgradeConfig) &&
  346. (identical(other.adConfig, adConfig) ||
  347. other.adConfig == adConfig) &&
  348. (identical(other.groups, groups) || other.groups == groups) &&
  349. const DeepCollectionEquality().equals(other._ranks, _ranks) &&
  350. const DeepCollectionEquality().equals(other.exData, exData) &&
  351. (identical(other.nodesConfig, nodesConfig) ||
  352. other.nodesConfig == nodesConfig));
  353. }
  354. @JsonKey(includeFromJson: false, includeToJson: false)
  355. @override
  356. int get hashCode => Object.hash(
  357. runtimeType,
  358. userConfig,
  359. appConfig,
  360. upgradeConfig,
  361. adConfig,
  362. groups,
  363. const DeepCollectionEquality().hash(_ranks),
  364. const DeepCollectionEquality().hash(exData),
  365. nodesConfig,
  366. );
  367. /// Create a copy of Launch
  368. /// with the given fields replaced by the non-null parameter values.
  369. @JsonKey(includeFromJson: false, includeToJson: false)
  370. @override
  371. @pragma('vm:prefer-inline')
  372. _$$LaunchImplCopyWith<_$LaunchImpl> get copyWith =>
  373. __$$LaunchImplCopyWithImpl<_$LaunchImpl>(this, _$identity);
  374. @override
  375. Map<String, dynamic> toJson() {
  376. return _$$LaunchImplToJson(this);
  377. }
  378. }
  379. abstract class _Launch implements Launch {
  380. const factory _Launch({
  381. final User? userConfig,
  382. final AppConfig? appConfig,
  383. final Upgrade? upgradeConfig,
  384. final AdConfig? adConfig,
  385. final Groups? groups,
  386. final List<Ranks>? ranks,
  387. final dynamic exData,
  388. final NodesConfig? nodesConfig,
  389. }) = _$LaunchImpl;
  390. factory _Launch.fromJson(Map<String, dynamic> json) = _$LaunchImpl.fromJson;
  391. @override
  392. User? get userConfig;
  393. @override
  394. AppConfig? get appConfig;
  395. @override
  396. Upgrade? get upgradeConfig;
  397. @override
  398. AdConfig? get adConfig;
  399. @override
  400. Groups? get groups;
  401. @override
  402. List<Ranks>? get ranks;
  403. @override
  404. dynamic get exData;
  405. @override
  406. NodesConfig? get nodesConfig;
  407. /// Create a copy of Launch
  408. /// with the given fields replaced by the non-null parameter values.
  409. @override
  410. @JsonKey(includeFromJson: false, includeToJson: false)
  411. _$$LaunchImplCopyWith<_$LaunchImpl> get copyWith =>
  412. throw _privateConstructorUsedError;
  413. }