upgrade.freezed.dart 12 KB

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