launch.freezed.dart 14 KB

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