launch.freezed.dart 16 KB

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