vpn_config.freezed.dart 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  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 'vpn_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. VpnConfig _$VpnConfigFromJson(Map<String, dynamic> json) {
  13. return _VpnConfig.fromJson(json);
  14. }
  15. /// @nodoc
  16. mixin _$VpnConfig {
  17. List<String>? get cdnRouters => throw _privateConstructorUsedError;
  18. int? get autoDisconnectMinutes => throw _privateConstructorUsedError;
  19. ConnectArgs? get connectArgs => throw _privateConstructorUsedError;
  20. String? get defaultDnsServers => throw _privateConstructorUsedError;
  21. String? get forceSkipDomain => throw _privateConstructorUsedError;
  22. List<String>? get routers => throw _privateConstructorUsedError;
  23. SkipIps? get skipIps => throw _privateConstructorUsedError;
  24. /// Serializes this VpnConfig to a JSON map.
  25. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  26. /// Create a copy of VpnConfig
  27. /// with the given fields replaced by the non-null parameter values.
  28. @JsonKey(includeFromJson: false, includeToJson: false)
  29. $VpnConfigCopyWith<VpnConfig> get copyWith =>
  30. throw _privateConstructorUsedError;
  31. }
  32. /// @nodoc
  33. abstract class $VpnConfigCopyWith<$Res> {
  34. factory $VpnConfigCopyWith(VpnConfig value, $Res Function(VpnConfig) then) =
  35. _$VpnConfigCopyWithImpl<$Res, VpnConfig>;
  36. @useResult
  37. $Res call(
  38. {List<String>? cdnRouters,
  39. int? autoDisconnectMinutes,
  40. ConnectArgs? connectArgs,
  41. String? defaultDnsServers,
  42. String? forceSkipDomain,
  43. List<String>? routers,
  44. SkipIps? skipIps});
  45. $ConnectArgsCopyWith<$Res>? get connectArgs;
  46. $SkipIpsCopyWith<$Res>? get skipIps;
  47. }
  48. /// @nodoc
  49. class _$VpnConfigCopyWithImpl<$Res, $Val extends VpnConfig>
  50. implements $VpnConfigCopyWith<$Res> {
  51. _$VpnConfigCopyWithImpl(this._value, this._then);
  52. // ignore: unused_field
  53. final $Val _value;
  54. // ignore: unused_field
  55. final $Res Function($Val) _then;
  56. /// Create a copy of VpnConfig
  57. /// with the given fields replaced by the non-null parameter values.
  58. @pragma('vm:prefer-inline')
  59. @override
  60. $Res call({
  61. Object? cdnRouters = freezed,
  62. Object? autoDisconnectMinutes = freezed,
  63. Object? connectArgs = freezed,
  64. Object? defaultDnsServers = freezed,
  65. Object? forceSkipDomain = freezed,
  66. Object? routers = freezed,
  67. Object? skipIps = freezed,
  68. }) {
  69. return _then(_value.copyWith(
  70. cdnRouters: freezed == cdnRouters
  71. ? _value.cdnRouters
  72. : cdnRouters // ignore: cast_nullable_to_non_nullable
  73. as List<String>?,
  74. autoDisconnectMinutes: freezed == autoDisconnectMinutes
  75. ? _value.autoDisconnectMinutes
  76. : autoDisconnectMinutes // ignore: cast_nullable_to_non_nullable
  77. as int?,
  78. connectArgs: freezed == connectArgs
  79. ? _value.connectArgs
  80. : connectArgs // ignore: cast_nullable_to_non_nullable
  81. as ConnectArgs?,
  82. defaultDnsServers: freezed == defaultDnsServers
  83. ? _value.defaultDnsServers
  84. : defaultDnsServers // ignore: cast_nullable_to_non_nullable
  85. as String?,
  86. forceSkipDomain: freezed == forceSkipDomain
  87. ? _value.forceSkipDomain
  88. : forceSkipDomain // ignore: cast_nullable_to_non_nullable
  89. as String?,
  90. routers: freezed == routers
  91. ? _value.routers
  92. : routers // ignore: cast_nullable_to_non_nullable
  93. as List<String>?,
  94. skipIps: freezed == skipIps
  95. ? _value.skipIps
  96. : skipIps // ignore: cast_nullable_to_non_nullable
  97. as SkipIps?,
  98. ) as $Val);
  99. }
  100. /// Create a copy of VpnConfig
  101. /// with the given fields replaced by the non-null parameter values.
  102. @override
  103. @pragma('vm:prefer-inline')
  104. $ConnectArgsCopyWith<$Res>? get connectArgs {
  105. if (_value.connectArgs == null) {
  106. return null;
  107. }
  108. return $ConnectArgsCopyWith<$Res>(_value.connectArgs!, (value) {
  109. return _then(_value.copyWith(connectArgs: value) as $Val);
  110. });
  111. }
  112. /// Create a copy of VpnConfig
  113. /// with the given fields replaced by the non-null parameter values.
  114. @override
  115. @pragma('vm:prefer-inline')
  116. $SkipIpsCopyWith<$Res>? get skipIps {
  117. if (_value.skipIps == null) {
  118. return null;
  119. }
  120. return $SkipIpsCopyWith<$Res>(_value.skipIps!, (value) {
  121. return _then(_value.copyWith(skipIps: value) as $Val);
  122. });
  123. }
  124. }
  125. /// @nodoc
  126. abstract class _$$VpnConfigImplCopyWith<$Res>
  127. implements $VpnConfigCopyWith<$Res> {
  128. factory _$$VpnConfigImplCopyWith(
  129. _$VpnConfigImpl value, $Res Function(_$VpnConfigImpl) then) =
  130. __$$VpnConfigImplCopyWithImpl<$Res>;
  131. @override
  132. @useResult
  133. $Res call(
  134. {List<String>? cdnRouters,
  135. int? autoDisconnectMinutes,
  136. ConnectArgs? connectArgs,
  137. String? defaultDnsServers,
  138. String? forceSkipDomain,
  139. List<String>? routers,
  140. SkipIps? skipIps});
  141. @override
  142. $ConnectArgsCopyWith<$Res>? get connectArgs;
  143. @override
  144. $SkipIpsCopyWith<$Res>? get skipIps;
  145. }
  146. /// @nodoc
  147. class __$$VpnConfigImplCopyWithImpl<$Res>
  148. extends _$VpnConfigCopyWithImpl<$Res, _$VpnConfigImpl>
  149. implements _$$VpnConfigImplCopyWith<$Res> {
  150. __$$VpnConfigImplCopyWithImpl(
  151. _$VpnConfigImpl _value, $Res Function(_$VpnConfigImpl) _then)
  152. : super(_value, _then);
  153. /// Create a copy of VpnConfig
  154. /// with the given fields replaced by the non-null parameter values.
  155. @pragma('vm:prefer-inline')
  156. @override
  157. $Res call({
  158. Object? cdnRouters = freezed,
  159. Object? autoDisconnectMinutes = freezed,
  160. Object? connectArgs = freezed,
  161. Object? defaultDnsServers = freezed,
  162. Object? forceSkipDomain = freezed,
  163. Object? routers = freezed,
  164. Object? skipIps = freezed,
  165. }) {
  166. return _then(_$VpnConfigImpl(
  167. cdnRouters: freezed == cdnRouters
  168. ? _value._cdnRouters
  169. : cdnRouters // ignore: cast_nullable_to_non_nullable
  170. as List<String>?,
  171. autoDisconnectMinutes: freezed == autoDisconnectMinutes
  172. ? _value.autoDisconnectMinutes
  173. : autoDisconnectMinutes // ignore: cast_nullable_to_non_nullable
  174. as int?,
  175. connectArgs: freezed == connectArgs
  176. ? _value.connectArgs
  177. : connectArgs // ignore: cast_nullable_to_non_nullable
  178. as ConnectArgs?,
  179. defaultDnsServers: freezed == defaultDnsServers
  180. ? _value.defaultDnsServers
  181. : defaultDnsServers // ignore: cast_nullable_to_non_nullable
  182. as String?,
  183. forceSkipDomain: freezed == forceSkipDomain
  184. ? _value.forceSkipDomain
  185. : forceSkipDomain // ignore: cast_nullable_to_non_nullable
  186. as String?,
  187. routers: freezed == routers
  188. ? _value._routers
  189. : routers // ignore: cast_nullable_to_non_nullable
  190. as List<String>?,
  191. skipIps: freezed == skipIps
  192. ? _value.skipIps
  193. : skipIps // ignore: cast_nullable_to_non_nullable
  194. as SkipIps?,
  195. ));
  196. }
  197. }
  198. /// @nodoc
  199. @JsonSerializable()
  200. class _$VpnConfigImpl with DiagnosticableTreeMixin implements _VpnConfig {
  201. const _$VpnConfigImpl(
  202. {final List<String>? cdnRouters,
  203. this.autoDisconnectMinutes,
  204. this.connectArgs,
  205. this.defaultDnsServers,
  206. this.forceSkipDomain,
  207. final List<String>? routers,
  208. this.skipIps})
  209. : _cdnRouters = cdnRouters,
  210. _routers = routers;
  211. factory _$VpnConfigImpl.fromJson(Map<String, dynamic> json) =>
  212. _$$VpnConfigImplFromJson(json);
  213. final List<String>? _cdnRouters;
  214. @override
  215. List<String>? get cdnRouters {
  216. final value = _cdnRouters;
  217. if (value == null) return null;
  218. if (_cdnRouters is EqualUnmodifiableListView) return _cdnRouters;
  219. // ignore: implicit_dynamic_type
  220. return EqualUnmodifiableListView(value);
  221. }
  222. @override
  223. final int? autoDisconnectMinutes;
  224. @override
  225. final ConnectArgs? connectArgs;
  226. @override
  227. final String? defaultDnsServers;
  228. @override
  229. final String? forceSkipDomain;
  230. final List<String>? _routers;
  231. @override
  232. List<String>? get routers {
  233. final value = _routers;
  234. if (value == null) return null;
  235. if (_routers is EqualUnmodifiableListView) return _routers;
  236. // ignore: implicit_dynamic_type
  237. return EqualUnmodifiableListView(value);
  238. }
  239. @override
  240. final SkipIps? skipIps;
  241. @override
  242. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  243. return 'VpnConfig(cdnRouters: $cdnRouters, autoDisconnectMinutes: $autoDisconnectMinutes, connectArgs: $connectArgs, defaultDnsServers: $defaultDnsServers, forceSkipDomain: $forceSkipDomain, routers: $routers, skipIps: $skipIps)';
  244. }
  245. @override
  246. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  247. super.debugFillProperties(properties);
  248. properties
  249. ..add(DiagnosticsProperty('type', 'VpnConfig'))
  250. ..add(DiagnosticsProperty('cdnRouters', cdnRouters))
  251. ..add(DiagnosticsProperty('autoDisconnectMinutes', autoDisconnectMinutes))
  252. ..add(DiagnosticsProperty('connectArgs', connectArgs))
  253. ..add(DiagnosticsProperty('defaultDnsServers', defaultDnsServers))
  254. ..add(DiagnosticsProperty('forceSkipDomain', forceSkipDomain))
  255. ..add(DiagnosticsProperty('routers', routers))
  256. ..add(DiagnosticsProperty('skipIps', skipIps));
  257. }
  258. @override
  259. bool operator ==(Object other) {
  260. return identical(this, other) ||
  261. (other.runtimeType == runtimeType &&
  262. other is _$VpnConfigImpl &&
  263. const DeepCollectionEquality()
  264. .equals(other._cdnRouters, _cdnRouters) &&
  265. (identical(other.autoDisconnectMinutes, autoDisconnectMinutes) ||
  266. other.autoDisconnectMinutes == autoDisconnectMinutes) &&
  267. (identical(other.connectArgs, connectArgs) ||
  268. other.connectArgs == connectArgs) &&
  269. (identical(other.defaultDnsServers, defaultDnsServers) ||
  270. other.defaultDnsServers == defaultDnsServers) &&
  271. (identical(other.forceSkipDomain, forceSkipDomain) ||
  272. other.forceSkipDomain == forceSkipDomain) &&
  273. const DeepCollectionEquality().equals(other._routers, _routers) &&
  274. (identical(other.skipIps, skipIps) || other.skipIps == skipIps));
  275. }
  276. @JsonKey(includeFromJson: false, includeToJson: false)
  277. @override
  278. int get hashCode => Object.hash(
  279. runtimeType,
  280. const DeepCollectionEquality().hash(_cdnRouters),
  281. autoDisconnectMinutes,
  282. connectArgs,
  283. defaultDnsServers,
  284. forceSkipDomain,
  285. const DeepCollectionEquality().hash(_routers),
  286. skipIps);
  287. /// Create a copy of VpnConfig
  288. /// with the given fields replaced by the non-null parameter values.
  289. @JsonKey(includeFromJson: false, includeToJson: false)
  290. @override
  291. @pragma('vm:prefer-inline')
  292. _$$VpnConfigImplCopyWith<_$VpnConfigImpl> get copyWith =>
  293. __$$VpnConfigImplCopyWithImpl<_$VpnConfigImpl>(this, _$identity);
  294. @override
  295. Map<String, dynamic> toJson() {
  296. return _$$VpnConfigImplToJson(
  297. this,
  298. );
  299. }
  300. }
  301. abstract class _VpnConfig implements VpnConfig {
  302. const factory _VpnConfig(
  303. {final List<String>? cdnRouters,
  304. final int? autoDisconnectMinutes,
  305. final ConnectArgs? connectArgs,
  306. final String? defaultDnsServers,
  307. final String? forceSkipDomain,
  308. final List<String>? routers,
  309. final SkipIps? skipIps}) = _$VpnConfigImpl;
  310. factory _VpnConfig.fromJson(Map<String, dynamic> json) =
  311. _$VpnConfigImpl.fromJson;
  312. @override
  313. List<String>? get cdnRouters;
  314. @override
  315. int? get autoDisconnectMinutes;
  316. @override
  317. ConnectArgs? get connectArgs;
  318. @override
  319. String? get defaultDnsServers;
  320. @override
  321. String? get forceSkipDomain;
  322. @override
  323. List<String>? get routers;
  324. @override
  325. SkipIps? get skipIps;
  326. /// Create a copy of VpnConfig
  327. /// with the given fields replaced by the non-null parameter values.
  328. @override
  329. @JsonKey(includeFromJson: false, includeToJson: false)
  330. _$$VpnConfigImplCopyWith<_$VpnConfigImpl> get copyWith =>
  331. throw _privateConstructorUsedError;
  332. }
  333. ConnectArgs _$ConnectArgsFromJson(Map<String, dynamic> json) {
  334. return _ConnectArgs.fromJson(json);
  335. }
  336. /// @nodoc
  337. mixin _$ConnectArgs {
  338. String? get p => throw _privateConstructorUsedError;
  339. String? get v => throw _privateConstructorUsedError;
  340. /// Serializes this ConnectArgs to a JSON map.
  341. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  342. /// Create a copy of ConnectArgs
  343. /// with the given fields replaced by the non-null parameter values.
  344. @JsonKey(includeFromJson: false, includeToJson: false)
  345. $ConnectArgsCopyWith<ConnectArgs> get copyWith =>
  346. throw _privateConstructorUsedError;
  347. }
  348. /// @nodoc
  349. abstract class $ConnectArgsCopyWith<$Res> {
  350. factory $ConnectArgsCopyWith(
  351. ConnectArgs value, $Res Function(ConnectArgs) then) =
  352. _$ConnectArgsCopyWithImpl<$Res, ConnectArgs>;
  353. @useResult
  354. $Res call({String? p, String? v});
  355. }
  356. /// @nodoc
  357. class _$ConnectArgsCopyWithImpl<$Res, $Val extends ConnectArgs>
  358. implements $ConnectArgsCopyWith<$Res> {
  359. _$ConnectArgsCopyWithImpl(this._value, this._then);
  360. // ignore: unused_field
  361. final $Val _value;
  362. // ignore: unused_field
  363. final $Res Function($Val) _then;
  364. /// Create a copy of ConnectArgs
  365. /// with the given fields replaced by the non-null parameter values.
  366. @pragma('vm:prefer-inline')
  367. @override
  368. $Res call({
  369. Object? p = freezed,
  370. Object? v = freezed,
  371. }) {
  372. return _then(_value.copyWith(
  373. p: freezed == p
  374. ? _value.p
  375. : p // ignore: cast_nullable_to_non_nullable
  376. as String?,
  377. v: freezed == v
  378. ? _value.v
  379. : v // ignore: cast_nullable_to_non_nullable
  380. as String?,
  381. ) as $Val);
  382. }
  383. }
  384. /// @nodoc
  385. abstract class _$$ConnectArgsImplCopyWith<$Res>
  386. implements $ConnectArgsCopyWith<$Res> {
  387. factory _$$ConnectArgsImplCopyWith(
  388. _$ConnectArgsImpl value, $Res Function(_$ConnectArgsImpl) then) =
  389. __$$ConnectArgsImplCopyWithImpl<$Res>;
  390. @override
  391. @useResult
  392. $Res call({String? p, String? v});
  393. }
  394. /// @nodoc
  395. class __$$ConnectArgsImplCopyWithImpl<$Res>
  396. extends _$ConnectArgsCopyWithImpl<$Res, _$ConnectArgsImpl>
  397. implements _$$ConnectArgsImplCopyWith<$Res> {
  398. __$$ConnectArgsImplCopyWithImpl(
  399. _$ConnectArgsImpl _value, $Res Function(_$ConnectArgsImpl) _then)
  400. : super(_value, _then);
  401. /// Create a copy of ConnectArgs
  402. /// with the given fields replaced by the non-null parameter values.
  403. @pragma('vm:prefer-inline')
  404. @override
  405. $Res call({
  406. Object? p = freezed,
  407. Object? v = freezed,
  408. }) {
  409. return _then(_$ConnectArgsImpl(
  410. p: freezed == p
  411. ? _value.p
  412. : p // ignore: cast_nullable_to_non_nullable
  413. as String?,
  414. v: freezed == v
  415. ? _value.v
  416. : v // ignore: cast_nullable_to_non_nullable
  417. as String?,
  418. ));
  419. }
  420. }
  421. /// @nodoc
  422. @JsonSerializable()
  423. class _$ConnectArgsImpl with DiagnosticableTreeMixin implements _ConnectArgs {
  424. const _$ConnectArgsImpl({this.p, this.v});
  425. factory _$ConnectArgsImpl.fromJson(Map<String, dynamic> json) =>
  426. _$$ConnectArgsImplFromJson(json);
  427. @override
  428. final String? p;
  429. @override
  430. final String? v;
  431. @override
  432. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  433. return 'ConnectArgs(p: $p, v: $v)';
  434. }
  435. @override
  436. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  437. super.debugFillProperties(properties);
  438. properties
  439. ..add(DiagnosticsProperty('type', 'ConnectArgs'))
  440. ..add(DiagnosticsProperty('p', p))
  441. ..add(DiagnosticsProperty('v', v));
  442. }
  443. @override
  444. bool operator ==(Object other) {
  445. return identical(this, other) ||
  446. (other.runtimeType == runtimeType &&
  447. other is _$ConnectArgsImpl &&
  448. (identical(other.p, p) || other.p == p) &&
  449. (identical(other.v, v) || other.v == v));
  450. }
  451. @JsonKey(includeFromJson: false, includeToJson: false)
  452. @override
  453. int get hashCode => Object.hash(runtimeType, p, v);
  454. /// Create a copy of ConnectArgs
  455. /// with the given fields replaced by the non-null parameter values.
  456. @JsonKey(includeFromJson: false, includeToJson: false)
  457. @override
  458. @pragma('vm:prefer-inline')
  459. _$$ConnectArgsImplCopyWith<_$ConnectArgsImpl> get copyWith =>
  460. __$$ConnectArgsImplCopyWithImpl<_$ConnectArgsImpl>(this, _$identity);
  461. @override
  462. Map<String, dynamic> toJson() {
  463. return _$$ConnectArgsImplToJson(
  464. this,
  465. );
  466. }
  467. }
  468. abstract class _ConnectArgs implements ConnectArgs {
  469. const factory _ConnectArgs({final String? p, final String? v}) =
  470. _$ConnectArgsImpl;
  471. factory _ConnectArgs.fromJson(Map<String, dynamic> json) =
  472. _$ConnectArgsImpl.fromJson;
  473. @override
  474. String? get p;
  475. @override
  476. String? get v;
  477. /// Create a copy of ConnectArgs
  478. /// with the given fields replaced by the non-null parameter values.
  479. @override
  480. @JsonKey(includeFromJson: false, includeToJson: false)
  481. _$$ConnectArgsImplCopyWith<_$ConnectArgsImpl> get copyWith =>
  482. throw _privateConstructorUsedError;
  483. }
  484. SkipIps _$SkipIpsFromJson(Map<String, dynamic> json) {
  485. return _SkipIps.fromJson(json);
  486. }
  487. /// @nodoc
  488. mixin _$SkipIps {
  489. String? get md5 => throw _privateConstructorUsedError;
  490. String? get url => throw _privateConstructorUsedError;
  491. /// Serializes this SkipIps to a JSON map.
  492. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  493. /// Create a copy of SkipIps
  494. /// with the given fields replaced by the non-null parameter values.
  495. @JsonKey(includeFromJson: false, includeToJson: false)
  496. $SkipIpsCopyWith<SkipIps> get copyWith => throw _privateConstructorUsedError;
  497. }
  498. /// @nodoc
  499. abstract class $SkipIpsCopyWith<$Res> {
  500. factory $SkipIpsCopyWith(SkipIps value, $Res Function(SkipIps) then) =
  501. _$SkipIpsCopyWithImpl<$Res, SkipIps>;
  502. @useResult
  503. $Res call({String? md5, String? url});
  504. }
  505. /// @nodoc
  506. class _$SkipIpsCopyWithImpl<$Res, $Val extends SkipIps>
  507. implements $SkipIpsCopyWith<$Res> {
  508. _$SkipIpsCopyWithImpl(this._value, this._then);
  509. // ignore: unused_field
  510. final $Val _value;
  511. // ignore: unused_field
  512. final $Res Function($Val) _then;
  513. /// Create a copy of SkipIps
  514. /// with the given fields replaced by the non-null parameter values.
  515. @pragma('vm:prefer-inline')
  516. @override
  517. $Res call({
  518. Object? md5 = freezed,
  519. Object? url = freezed,
  520. }) {
  521. return _then(_value.copyWith(
  522. md5: freezed == md5
  523. ? _value.md5
  524. : md5 // ignore: cast_nullable_to_non_nullable
  525. as String?,
  526. url: freezed == url
  527. ? _value.url
  528. : url // ignore: cast_nullable_to_non_nullable
  529. as String?,
  530. ) as $Val);
  531. }
  532. }
  533. /// @nodoc
  534. abstract class _$$SkipIpsImplCopyWith<$Res> implements $SkipIpsCopyWith<$Res> {
  535. factory _$$SkipIpsImplCopyWith(
  536. _$SkipIpsImpl value, $Res Function(_$SkipIpsImpl) then) =
  537. __$$SkipIpsImplCopyWithImpl<$Res>;
  538. @override
  539. @useResult
  540. $Res call({String? md5, String? url});
  541. }
  542. /// @nodoc
  543. class __$$SkipIpsImplCopyWithImpl<$Res>
  544. extends _$SkipIpsCopyWithImpl<$Res, _$SkipIpsImpl>
  545. implements _$$SkipIpsImplCopyWith<$Res> {
  546. __$$SkipIpsImplCopyWithImpl(
  547. _$SkipIpsImpl _value, $Res Function(_$SkipIpsImpl) _then)
  548. : super(_value, _then);
  549. /// Create a copy of SkipIps
  550. /// with the given fields replaced by the non-null parameter values.
  551. @pragma('vm:prefer-inline')
  552. @override
  553. $Res call({
  554. Object? md5 = freezed,
  555. Object? url = freezed,
  556. }) {
  557. return _then(_$SkipIpsImpl(
  558. md5: freezed == md5
  559. ? _value.md5
  560. : md5 // ignore: cast_nullable_to_non_nullable
  561. as String?,
  562. url: freezed == url
  563. ? _value.url
  564. : url // ignore: cast_nullable_to_non_nullable
  565. as String?,
  566. ));
  567. }
  568. }
  569. /// @nodoc
  570. @JsonSerializable()
  571. class _$SkipIpsImpl with DiagnosticableTreeMixin implements _SkipIps {
  572. const _$SkipIpsImpl({this.md5, this.url});
  573. factory _$SkipIpsImpl.fromJson(Map<String, dynamic> json) =>
  574. _$$SkipIpsImplFromJson(json);
  575. @override
  576. final String? md5;
  577. @override
  578. final String? url;
  579. @override
  580. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  581. return 'SkipIps(md5: $md5, url: $url)';
  582. }
  583. @override
  584. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  585. super.debugFillProperties(properties);
  586. properties
  587. ..add(DiagnosticsProperty('type', 'SkipIps'))
  588. ..add(DiagnosticsProperty('md5', md5))
  589. ..add(DiagnosticsProperty('url', url));
  590. }
  591. @override
  592. bool operator ==(Object other) {
  593. return identical(this, other) ||
  594. (other.runtimeType == runtimeType &&
  595. other is _$SkipIpsImpl &&
  596. (identical(other.md5, md5) || other.md5 == md5) &&
  597. (identical(other.url, url) || other.url == url));
  598. }
  599. @JsonKey(includeFromJson: false, includeToJson: false)
  600. @override
  601. int get hashCode => Object.hash(runtimeType, md5, url);
  602. /// Create a copy of SkipIps
  603. /// with the given fields replaced by the non-null parameter values.
  604. @JsonKey(includeFromJson: false, includeToJson: false)
  605. @override
  606. @pragma('vm:prefer-inline')
  607. _$$SkipIpsImplCopyWith<_$SkipIpsImpl> get copyWith =>
  608. __$$SkipIpsImplCopyWithImpl<_$SkipIpsImpl>(this, _$identity);
  609. @override
  610. Map<String, dynamic> toJson() {
  611. return _$$SkipIpsImplToJson(
  612. this,
  613. );
  614. }
  615. }
  616. abstract class _SkipIps implements SkipIps {
  617. const factory _SkipIps({final String? md5, final String? url}) =
  618. _$SkipIpsImpl;
  619. factory _SkipIps.fromJson(Map<String, dynamic> json) = _$SkipIpsImpl.fromJson;
  620. @override
  621. String? get md5;
  622. @override
  623. String? get url;
  624. /// Create a copy of SkipIps
  625. /// with the given fields replaced by the non-null parameter values.
  626. @override
  627. @JsonKey(includeFromJson: false, includeToJson: false)
  628. _$$SkipIpsImplCopyWith<_$SkipIpsImpl> get copyWith =>
  629. throw _privateConstructorUsedError;
  630. }