ad_config.freezed.dart 15 KB

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