// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint // 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 part of 'vpn_config.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( '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', ); VpnConfig _$VpnConfigFromJson(Map json) { return _VpnConfig.fromJson(json); } /// @nodoc mixin _$VpnConfig { List? get cdnRouters => throw _privateConstructorUsedError; int? get autoDisconnectMinutes => throw _privateConstructorUsedError; ConnectArgs? get connectArgs => throw _privateConstructorUsedError; String? get defaultDnsServers => throw _privateConstructorUsedError; String? get forceSkipDomain => throw _privateConstructorUsedError; List? get routers => throw _privateConstructorUsedError; SkipIps? get skipIps => throw _privateConstructorUsedError; /// Serializes this VpnConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $VpnConfigCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $VpnConfigCopyWith<$Res> { factory $VpnConfigCopyWith(VpnConfig value, $Res Function(VpnConfig) then) = _$VpnConfigCopyWithImpl<$Res, VpnConfig>; @useResult $Res call({ List? cdnRouters, int? autoDisconnectMinutes, ConnectArgs? connectArgs, String? defaultDnsServers, String? forceSkipDomain, List? routers, SkipIps? skipIps, }); $ConnectArgsCopyWith<$Res>? get connectArgs; $SkipIpsCopyWith<$Res>? get skipIps; } /// @nodoc class _$VpnConfigCopyWithImpl<$Res, $Val extends VpnConfig> implements $VpnConfigCopyWith<$Res> { _$VpnConfigCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? cdnRouters = freezed, Object? autoDisconnectMinutes = freezed, Object? connectArgs = freezed, Object? defaultDnsServers = freezed, Object? forceSkipDomain = freezed, Object? routers = freezed, Object? skipIps = freezed, }) { return _then( _value.copyWith( cdnRouters: freezed == cdnRouters ? _value.cdnRouters : cdnRouters // ignore: cast_nullable_to_non_nullable as List?, autoDisconnectMinutes: freezed == autoDisconnectMinutes ? _value.autoDisconnectMinutes : autoDisconnectMinutes // ignore: cast_nullable_to_non_nullable as int?, connectArgs: freezed == connectArgs ? _value.connectArgs : connectArgs // ignore: cast_nullable_to_non_nullable as ConnectArgs?, defaultDnsServers: freezed == defaultDnsServers ? _value.defaultDnsServers : defaultDnsServers // ignore: cast_nullable_to_non_nullable as String?, forceSkipDomain: freezed == forceSkipDomain ? _value.forceSkipDomain : forceSkipDomain // ignore: cast_nullable_to_non_nullable as String?, routers: freezed == routers ? _value.routers : routers // ignore: cast_nullable_to_non_nullable as List?, skipIps: freezed == skipIps ? _value.skipIps : skipIps // ignore: cast_nullable_to_non_nullable as SkipIps?, ) as $Val, ); } /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ConnectArgsCopyWith<$Res>? get connectArgs { if (_value.connectArgs == null) { return null; } return $ConnectArgsCopyWith<$Res>(_value.connectArgs!, (value) { return _then(_value.copyWith(connectArgs: value) as $Val); }); } /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SkipIpsCopyWith<$Res>? get skipIps { if (_value.skipIps == null) { return null; } return $SkipIpsCopyWith<$Res>(_value.skipIps!, (value) { return _then(_value.copyWith(skipIps: value) as $Val); }); } } /// @nodoc abstract class _$$VpnConfigImplCopyWith<$Res> implements $VpnConfigCopyWith<$Res> { factory _$$VpnConfigImplCopyWith( _$VpnConfigImpl value, $Res Function(_$VpnConfigImpl) then, ) = __$$VpnConfigImplCopyWithImpl<$Res>; @override @useResult $Res call({ List? cdnRouters, int? autoDisconnectMinutes, ConnectArgs? connectArgs, String? defaultDnsServers, String? forceSkipDomain, List? routers, SkipIps? skipIps, }); @override $ConnectArgsCopyWith<$Res>? get connectArgs; @override $SkipIpsCopyWith<$Res>? get skipIps; } /// @nodoc class __$$VpnConfigImplCopyWithImpl<$Res> extends _$VpnConfigCopyWithImpl<$Res, _$VpnConfigImpl> implements _$$VpnConfigImplCopyWith<$Res> { __$$VpnConfigImplCopyWithImpl( _$VpnConfigImpl _value, $Res Function(_$VpnConfigImpl) _then, ) : super(_value, _then); /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? cdnRouters = freezed, Object? autoDisconnectMinutes = freezed, Object? connectArgs = freezed, Object? defaultDnsServers = freezed, Object? forceSkipDomain = freezed, Object? routers = freezed, Object? skipIps = freezed, }) { return _then( _$VpnConfigImpl( cdnRouters: freezed == cdnRouters ? _value._cdnRouters : cdnRouters // ignore: cast_nullable_to_non_nullable as List?, autoDisconnectMinutes: freezed == autoDisconnectMinutes ? _value.autoDisconnectMinutes : autoDisconnectMinutes // ignore: cast_nullable_to_non_nullable as int?, connectArgs: freezed == connectArgs ? _value.connectArgs : connectArgs // ignore: cast_nullable_to_non_nullable as ConnectArgs?, defaultDnsServers: freezed == defaultDnsServers ? _value.defaultDnsServers : defaultDnsServers // ignore: cast_nullable_to_non_nullable as String?, forceSkipDomain: freezed == forceSkipDomain ? _value.forceSkipDomain : forceSkipDomain // ignore: cast_nullable_to_non_nullable as String?, routers: freezed == routers ? _value._routers : routers // ignore: cast_nullable_to_non_nullable as List?, skipIps: freezed == skipIps ? _value.skipIps : skipIps // ignore: cast_nullable_to_non_nullable as SkipIps?, ), ); } } /// @nodoc @JsonSerializable() class _$VpnConfigImpl with DiagnosticableTreeMixin implements _VpnConfig { const _$VpnConfigImpl({ final List? cdnRouters, this.autoDisconnectMinutes, this.connectArgs, this.defaultDnsServers, this.forceSkipDomain, final List? routers, this.skipIps, }) : _cdnRouters = cdnRouters, _routers = routers; factory _$VpnConfigImpl.fromJson(Map json) => _$$VpnConfigImplFromJson(json); final List? _cdnRouters; @override List? get cdnRouters { final value = _cdnRouters; if (value == null) return null; if (_cdnRouters is EqualUnmodifiableListView) return _cdnRouters; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @override final int? autoDisconnectMinutes; @override final ConnectArgs? connectArgs; @override final String? defaultDnsServers; @override final String? forceSkipDomain; final List? _routers; @override List? get routers { final value = _routers; if (value == null) return null; if (_routers is EqualUnmodifiableListView) return _routers; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @override final SkipIps? skipIps; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'VpnConfig(cdnRouters: $cdnRouters, autoDisconnectMinutes: $autoDisconnectMinutes, connectArgs: $connectArgs, defaultDnsServers: $defaultDnsServers, forceSkipDomain: $forceSkipDomain, routers: $routers, skipIps: $skipIps)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'VpnConfig')) ..add(DiagnosticsProperty('cdnRouters', cdnRouters)) ..add(DiagnosticsProperty('autoDisconnectMinutes', autoDisconnectMinutes)) ..add(DiagnosticsProperty('connectArgs', connectArgs)) ..add(DiagnosticsProperty('defaultDnsServers', defaultDnsServers)) ..add(DiagnosticsProperty('forceSkipDomain', forceSkipDomain)) ..add(DiagnosticsProperty('routers', routers)) ..add(DiagnosticsProperty('skipIps', skipIps)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$VpnConfigImpl && const DeepCollectionEquality().equals( other._cdnRouters, _cdnRouters, ) && (identical(other.autoDisconnectMinutes, autoDisconnectMinutes) || other.autoDisconnectMinutes == autoDisconnectMinutes) && (identical(other.connectArgs, connectArgs) || other.connectArgs == connectArgs) && (identical(other.defaultDnsServers, defaultDnsServers) || other.defaultDnsServers == defaultDnsServers) && (identical(other.forceSkipDomain, forceSkipDomain) || other.forceSkipDomain == forceSkipDomain) && const DeepCollectionEquality().equals(other._routers, _routers) && (identical(other.skipIps, skipIps) || other.skipIps == skipIps)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_cdnRouters), autoDisconnectMinutes, connectArgs, defaultDnsServers, forceSkipDomain, const DeepCollectionEquality().hash(_routers), skipIps, ); /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$VpnConfigImplCopyWith<_$VpnConfigImpl> get copyWith => __$$VpnConfigImplCopyWithImpl<_$VpnConfigImpl>(this, _$identity); @override Map toJson() { return _$$VpnConfigImplToJson(this); } } abstract class _VpnConfig implements VpnConfig { const factory _VpnConfig({ final List? cdnRouters, final int? autoDisconnectMinutes, final ConnectArgs? connectArgs, final String? defaultDnsServers, final String? forceSkipDomain, final List? routers, final SkipIps? skipIps, }) = _$VpnConfigImpl; factory _VpnConfig.fromJson(Map json) = _$VpnConfigImpl.fromJson; @override List? get cdnRouters; @override int? get autoDisconnectMinutes; @override ConnectArgs? get connectArgs; @override String? get defaultDnsServers; @override String? get forceSkipDomain; @override List? get routers; @override SkipIps? get skipIps; /// Create a copy of VpnConfig /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$VpnConfigImplCopyWith<_$VpnConfigImpl> get copyWith => throw _privateConstructorUsedError; } ConnectArgs _$ConnectArgsFromJson(Map json) { return _ConnectArgs.fromJson(json); } /// @nodoc mixin _$ConnectArgs { String? get p => throw _privateConstructorUsedError; String? get v => throw _privateConstructorUsedError; /// Serializes this ConnectArgs to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ConnectArgs /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ConnectArgsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ConnectArgsCopyWith<$Res> { factory $ConnectArgsCopyWith( ConnectArgs value, $Res Function(ConnectArgs) then, ) = _$ConnectArgsCopyWithImpl<$Res, ConnectArgs>; @useResult $Res call({String? p, String? v}); } /// @nodoc class _$ConnectArgsCopyWithImpl<$Res, $Val extends ConnectArgs> implements $ConnectArgsCopyWith<$Res> { _$ConnectArgsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ConnectArgs /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? p = freezed, Object? v = freezed}) { return _then( _value.copyWith( p: freezed == p ? _value.p : p // ignore: cast_nullable_to_non_nullable as String?, v: freezed == v ? _value.v : v // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$ConnectArgsImplCopyWith<$Res> implements $ConnectArgsCopyWith<$Res> { factory _$$ConnectArgsImplCopyWith( _$ConnectArgsImpl value, $Res Function(_$ConnectArgsImpl) then, ) = __$$ConnectArgsImplCopyWithImpl<$Res>; @override @useResult $Res call({String? p, String? v}); } /// @nodoc class __$$ConnectArgsImplCopyWithImpl<$Res> extends _$ConnectArgsCopyWithImpl<$Res, _$ConnectArgsImpl> implements _$$ConnectArgsImplCopyWith<$Res> { __$$ConnectArgsImplCopyWithImpl( _$ConnectArgsImpl _value, $Res Function(_$ConnectArgsImpl) _then, ) : super(_value, _then); /// Create a copy of ConnectArgs /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? p = freezed, Object? v = freezed}) { return _then( _$ConnectArgsImpl( p: freezed == p ? _value.p : p // ignore: cast_nullable_to_non_nullable as String?, v: freezed == v ? _value.v : v // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$ConnectArgsImpl with DiagnosticableTreeMixin implements _ConnectArgs { const _$ConnectArgsImpl({this.p, this.v}); factory _$ConnectArgsImpl.fromJson(Map json) => _$$ConnectArgsImplFromJson(json); @override final String? p; @override final String? v; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'ConnectArgs(p: $p, v: $v)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'ConnectArgs')) ..add(DiagnosticsProperty('p', p)) ..add(DiagnosticsProperty('v', v)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConnectArgsImpl && (identical(other.p, p) || other.p == p) && (identical(other.v, v) || other.v == v)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, p, v); /// Create a copy of ConnectArgs /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConnectArgsImplCopyWith<_$ConnectArgsImpl> get copyWith => __$$ConnectArgsImplCopyWithImpl<_$ConnectArgsImpl>(this, _$identity); @override Map toJson() { return _$$ConnectArgsImplToJson(this); } } abstract class _ConnectArgs implements ConnectArgs { const factory _ConnectArgs({final String? p, final String? v}) = _$ConnectArgsImpl; factory _ConnectArgs.fromJson(Map json) = _$ConnectArgsImpl.fromJson; @override String? get p; @override String? get v; /// Create a copy of ConnectArgs /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ConnectArgsImplCopyWith<_$ConnectArgsImpl> get copyWith => throw _privateConstructorUsedError; } SkipIps _$SkipIpsFromJson(Map json) { return _SkipIps.fromJson(json); } /// @nodoc mixin _$SkipIps { String? get md5 => throw _privateConstructorUsedError; String? get url => throw _privateConstructorUsedError; /// Serializes this SkipIps to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of SkipIps /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $SkipIpsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SkipIpsCopyWith<$Res> { factory $SkipIpsCopyWith(SkipIps value, $Res Function(SkipIps) then) = _$SkipIpsCopyWithImpl<$Res, SkipIps>; @useResult $Res call({String? md5, String? url}); } /// @nodoc class _$SkipIpsCopyWithImpl<$Res, $Val extends SkipIps> implements $SkipIpsCopyWith<$Res> { _$SkipIpsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of SkipIps /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? md5 = freezed, Object? url = freezed}) { return _then( _value.copyWith( md5: freezed == md5 ? _value.md5 : md5 // ignore: cast_nullable_to_non_nullable as String?, url: freezed == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$SkipIpsImplCopyWith<$Res> implements $SkipIpsCopyWith<$Res> { factory _$$SkipIpsImplCopyWith( _$SkipIpsImpl value, $Res Function(_$SkipIpsImpl) then, ) = __$$SkipIpsImplCopyWithImpl<$Res>; @override @useResult $Res call({String? md5, String? url}); } /// @nodoc class __$$SkipIpsImplCopyWithImpl<$Res> extends _$SkipIpsCopyWithImpl<$Res, _$SkipIpsImpl> implements _$$SkipIpsImplCopyWith<$Res> { __$$SkipIpsImplCopyWithImpl( _$SkipIpsImpl _value, $Res Function(_$SkipIpsImpl) _then, ) : super(_value, _then); /// Create a copy of SkipIps /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? md5 = freezed, Object? url = freezed}) { return _then( _$SkipIpsImpl( md5: freezed == md5 ? _value.md5 : md5 // ignore: cast_nullable_to_non_nullable as String?, url: freezed == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$SkipIpsImpl with DiagnosticableTreeMixin implements _SkipIps { const _$SkipIpsImpl({this.md5, this.url}); factory _$SkipIpsImpl.fromJson(Map json) => _$$SkipIpsImplFromJson(json); @override final String? md5; @override final String? url; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'SkipIps(md5: $md5, url: $url)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'SkipIps')) ..add(DiagnosticsProperty('md5', md5)) ..add(DiagnosticsProperty('url', url)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SkipIpsImpl && (identical(other.md5, md5) || other.md5 == md5) && (identical(other.url, url) || other.url == url)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, md5, url); /// Create a copy of SkipIps /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SkipIpsImplCopyWith<_$SkipIpsImpl> get copyWith => __$$SkipIpsImplCopyWithImpl<_$SkipIpsImpl>(this, _$identity); @override Map toJson() { return _$$SkipIpsImplToJson(this); } } abstract class _SkipIps implements SkipIps { const factory _SkipIps({final String? md5, final String? url}) = _$SkipIpsImpl; factory _SkipIps.fromJson(Map json) = _$SkipIpsImpl.fromJson; @override String? get md5; @override String? get url; /// Create a copy of SkipIps /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$SkipIpsImplCopyWith<_$SkipIpsImpl> get copyWith => throw _privateConstructorUsedError; }