upgrade.freezed.dart 12 KB

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