ad_config.freezed.dart 16 KB

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