vpn_config.freezed.dart 23 KB

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