// 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 '../core.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'); CoreState _$CoreStateFromJson(Map json) { return _CoreState.fromJson(json); } /// @nodoc mixin _$CoreState { bool get enable => throw _privateConstructorUsedError; AccessControl? get accessControl => throw _privateConstructorUsedError; String get currentProfileName => throw _privateConstructorUsedError; bool get allowBypass => throw _privateConstructorUsedError; bool get systemProxy => throw _privateConstructorUsedError; List get bypassDomain => throw _privateConstructorUsedError; List get routeAddress => throw _privateConstructorUsedError; bool get ipv6 => throw _privateConstructorUsedError; bool get onlyProxy => throw _privateConstructorUsedError; /// Serializes this CoreState to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of CoreState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CoreStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CoreStateCopyWith<$Res> { factory $CoreStateCopyWith(CoreState value, $Res Function(CoreState) then) = _$CoreStateCopyWithImpl<$Res, CoreState>; @useResult $Res call( {bool enable, AccessControl? accessControl, String currentProfileName, bool allowBypass, bool systemProxy, List bypassDomain, List routeAddress, bool ipv6, bool onlyProxy}); $AccessControlCopyWith<$Res>? get accessControl; } /// @nodoc class _$CoreStateCopyWithImpl<$Res, $Val extends CoreState> implements $CoreStateCopyWith<$Res> { _$CoreStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CoreState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? enable = null, Object? accessControl = freezed, Object? currentProfileName = null, Object? allowBypass = null, Object? systemProxy = null, Object? bypassDomain = null, Object? routeAddress = null, Object? ipv6 = null, Object? onlyProxy = null, }) { return _then(_value.copyWith( enable: null == enable ? _value.enable : enable // ignore: cast_nullable_to_non_nullable as bool, accessControl: freezed == accessControl ? _value.accessControl : accessControl // ignore: cast_nullable_to_non_nullable as AccessControl?, currentProfileName: null == currentProfileName ? _value.currentProfileName : currentProfileName // ignore: cast_nullable_to_non_nullable as String, allowBypass: null == allowBypass ? _value.allowBypass : allowBypass // ignore: cast_nullable_to_non_nullable as bool, systemProxy: null == systemProxy ? _value.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool, bypassDomain: null == bypassDomain ? _value.bypassDomain : bypassDomain // ignore: cast_nullable_to_non_nullable as List, routeAddress: null == routeAddress ? _value.routeAddress : routeAddress // ignore: cast_nullable_to_non_nullable as List, ipv6: null == ipv6 ? _value.ipv6 : ipv6 // ignore: cast_nullable_to_non_nullable as bool, onlyProxy: null == onlyProxy ? _value.onlyProxy : onlyProxy // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } /// Create a copy of CoreState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AccessControlCopyWith<$Res>? get accessControl { if (_value.accessControl == null) { return null; } return $AccessControlCopyWith<$Res>(_value.accessControl!, (value) { return _then(_value.copyWith(accessControl: value) as $Val); }); } } /// @nodoc abstract class _$$CoreStateImplCopyWith<$Res> implements $CoreStateCopyWith<$Res> { factory _$$CoreStateImplCopyWith( _$CoreStateImpl value, $Res Function(_$CoreStateImpl) then) = __$$CoreStateImplCopyWithImpl<$Res>; @override @useResult $Res call( {bool enable, AccessControl? accessControl, String currentProfileName, bool allowBypass, bool systemProxy, List bypassDomain, List routeAddress, bool ipv6, bool onlyProxy}); @override $AccessControlCopyWith<$Res>? get accessControl; } /// @nodoc class __$$CoreStateImplCopyWithImpl<$Res> extends _$CoreStateCopyWithImpl<$Res, _$CoreStateImpl> implements _$$CoreStateImplCopyWith<$Res> { __$$CoreStateImplCopyWithImpl( _$CoreStateImpl _value, $Res Function(_$CoreStateImpl) _then) : super(_value, _then); /// Create a copy of CoreState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? enable = null, Object? accessControl = freezed, Object? currentProfileName = null, Object? allowBypass = null, Object? systemProxy = null, Object? bypassDomain = null, Object? routeAddress = null, Object? ipv6 = null, Object? onlyProxy = null, }) { return _then(_$CoreStateImpl( enable: null == enable ? _value.enable : enable // ignore: cast_nullable_to_non_nullable as bool, accessControl: freezed == accessControl ? _value.accessControl : accessControl // ignore: cast_nullable_to_non_nullable as AccessControl?, currentProfileName: null == currentProfileName ? _value.currentProfileName : currentProfileName // ignore: cast_nullable_to_non_nullable as String, allowBypass: null == allowBypass ? _value.allowBypass : allowBypass // ignore: cast_nullable_to_non_nullable as bool, systemProxy: null == systemProxy ? _value.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool, bypassDomain: null == bypassDomain ? _value._bypassDomain : bypassDomain // ignore: cast_nullable_to_non_nullable as List, routeAddress: null == routeAddress ? _value._routeAddress : routeAddress // ignore: cast_nullable_to_non_nullable as List, ipv6: null == ipv6 ? _value.ipv6 : ipv6 // ignore: cast_nullable_to_non_nullable as bool, onlyProxy: null == onlyProxy ? _value.onlyProxy : onlyProxy // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$CoreStateImpl implements _CoreState { const _$CoreStateImpl( {required this.enable, this.accessControl, required this.currentProfileName, required this.allowBypass, required this.systemProxy, required final List bypassDomain, required final List routeAddress, required this.ipv6, required this.onlyProxy}) : _bypassDomain = bypassDomain, _routeAddress = routeAddress; factory _$CoreStateImpl.fromJson(Map json) => _$$CoreStateImplFromJson(json); @override final bool enable; @override final AccessControl? accessControl; @override final String currentProfileName; @override final bool allowBypass; @override final bool systemProxy; final List _bypassDomain; @override List get bypassDomain { if (_bypassDomain is EqualUnmodifiableListView) return _bypassDomain; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_bypassDomain); } final List _routeAddress; @override List get routeAddress { if (_routeAddress is EqualUnmodifiableListView) return _routeAddress; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_routeAddress); } @override final bool ipv6; @override final bool onlyProxy; @override String toString() { return 'CoreState(enable: $enable, accessControl: $accessControl, currentProfileName: $currentProfileName, allowBypass: $allowBypass, systemProxy: $systemProxy, bypassDomain: $bypassDomain, routeAddress: $routeAddress, ipv6: $ipv6, onlyProxy: $onlyProxy)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CoreStateImpl && (identical(other.enable, enable) || other.enable == enable) && (identical(other.accessControl, accessControl) || other.accessControl == accessControl) && (identical(other.currentProfileName, currentProfileName) || other.currentProfileName == currentProfileName) && (identical(other.allowBypass, allowBypass) || other.allowBypass == allowBypass) && (identical(other.systemProxy, systemProxy) || other.systemProxy == systemProxy) && const DeepCollectionEquality() .equals(other._bypassDomain, _bypassDomain) && const DeepCollectionEquality() .equals(other._routeAddress, _routeAddress) && (identical(other.ipv6, ipv6) || other.ipv6 == ipv6) && (identical(other.onlyProxy, onlyProxy) || other.onlyProxy == onlyProxy)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, enable, accessControl, currentProfileName, allowBypass, systemProxy, const DeepCollectionEquality().hash(_bypassDomain), const DeepCollectionEquality().hash(_routeAddress), ipv6, onlyProxy); /// Create a copy of CoreState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CoreStateImplCopyWith<_$CoreStateImpl> get copyWith => __$$CoreStateImplCopyWithImpl<_$CoreStateImpl>(this, _$identity); @override Map toJson() { return _$$CoreStateImplToJson( this, ); } } abstract class _CoreState implements CoreState { const factory _CoreState( {required final bool enable, final AccessControl? accessControl, required final String currentProfileName, required final bool allowBypass, required final bool systemProxy, required final List bypassDomain, required final List routeAddress, required final bool ipv6, required final bool onlyProxy}) = _$CoreStateImpl; factory _CoreState.fromJson(Map json) = _$CoreStateImpl.fromJson; @override bool get enable; @override AccessControl? get accessControl; @override String get currentProfileName; @override bool get allowBypass; @override bool get systemProxy; @override List get bypassDomain; @override List get routeAddress; @override bool get ipv6; @override bool get onlyProxy; /// Create a copy of CoreState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CoreStateImplCopyWith<_$CoreStateImpl> get copyWith => throw _privateConstructorUsedError; } AndroidVpnOptions _$AndroidVpnOptionsFromJson(Map json) { return _AndroidVpnOptions.fromJson(json); } /// @nodoc mixin _$AndroidVpnOptions { bool get enable => throw _privateConstructorUsedError; int get port => throw _privateConstructorUsedError; AccessControl? get accessControl => throw _privateConstructorUsedError; bool get allowBypass => throw _privateConstructorUsedError; bool get systemProxy => throw _privateConstructorUsedError; List get bypassDomain => throw _privateConstructorUsedError; String get ipv4Address => throw _privateConstructorUsedError; String get ipv6Address => throw _privateConstructorUsedError; List get routeAddress => throw _privateConstructorUsedError; String get dnsServerAddress => throw _privateConstructorUsedError; /// Serializes this AndroidVpnOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of AndroidVpnOptions /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $AndroidVpnOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AndroidVpnOptionsCopyWith<$Res> { factory $AndroidVpnOptionsCopyWith( AndroidVpnOptions value, $Res Function(AndroidVpnOptions) then) = _$AndroidVpnOptionsCopyWithImpl<$Res, AndroidVpnOptions>; @useResult $Res call( {bool enable, int port, AccessControl? accessControl, bool allowBypass, bool systemProxy, List bypassDomain, String ipv4Address, String ipv6Address, List routeAddress, String dnsServerAddress}); $AccessControlCopyWith<$Res>? get accessControl; } /// @nodoc class _$AndroidVpnOptionsCopyWithImpl<$Res, $Val extends AndroidVpnOptions> implements $AndroidVpnOptionsCopyWith<$Res> { _$AndroidVpnOptionsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of AndroidVpnOptions /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? enable = null, Object? port = null, Object? accessControl = freezed, Object? allowBypass = null, Object? systemProxy = null, Object? bypassDomain = null, Object? ipv4Address = null, Object? ipv6Address = null, Object? routeAddress = null, Object? dnsServerAddress = null, }) { return _then(_value.copyWith( enable: null == enable ? _value.enable : enable // ignore: cast_nullable_to_non_nullable as bool, port: null == port ? _value.port : port // ignore: cast_nullable_to_non_nullable as int, accessControl: freezed == accessControl ? _value.accessControl : accessControl // ignore: cast_nullable_to_non_nullable as AccessControl?, allowBypass: null == allowBypass ? _value.allowBypass : allowBypass // ignore: cast_nullable_to_non_nullable as bool, systemProxy: null == systemProxy ? _value.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool, bypassDomain: null == bypassDomain ? _value.bypassDomain : bypassDomain // ignore: cast_nullable_to_non_nullable as List, ipv4Address: null == ipv4Address ? _value.ipv4Address : ipv4Address // ignore: cast_nullable_to_non_nullable as String, ipv6Address: null == ipv6Address ? _value.ipv6Address : ipv6Address // ignore: cast_nullable_to_non_nullable as String, routeAddress: null == routeAddress ? _value.routeAddress : routeAddress // ignore: cast_nullable_to_non_nullable as List, dnsServerAddress: null == dnsServerAddress ? _value.dnsServerAddress : dnsServerAddress // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } /// Create a copy of AndroidVpnOptions /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AccessControlCopyWith<$Res>? get accessControl { if (_value.accessControl == null) { return null; } return $AccessControlCopyWith<$Res>(_value.accessControl!, (value) { return _then(_value.copyWith(accessControl: value) as $Val); }); } } /// @nodoc abstract class _$$AndroidVpnOptionsImplCopyWith<$Res> implements $AndroidVpnOptionsCopyWith<$Res> { factory _$$AndroidVpnOptionsImplCopyWith(_$AndroidVpnOptionsImpl value, $Res Function(_$AndroidVpnOptionsImpl) then) = __$$AndroidVpnOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call( {bool enable, int port, AccessControl? accessControl, bool allowBypass, bool systemProxy, List bypassDomain, String ipv4Address, String ipv6Address, List routeAddress, String dnsServerAddress}); @override $AccessControlCopyWith<$Res>? get accessControl; } /// @nodoc class __$$AndroidVpnOptionsImplCopyWithImpl<$Res> extends _$AndroidVpnOptionsCopyWithImpl<$Res, _$AndroidVpnOptionsImpl> implements _$$AndroidVpnOptionsImplCopyWith<$Res> { __$$AndroidVpnOptionsImplCopyWithImpl(_$AndroidVpnOptionsImpl _value, $Res Function(_$AndroidVpnOptionsImpl) _then) : super(_value, _then); /// Create a copy of AndroidVpnOptions /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? enable = null, Object? port = null, Object? accessControl = freezed, Object? allowBypass = null, Object? systemProxy = null, Object? bypassDomain = null, Object? ipv4Address = null, Object? ipv6Address = null, Object? routeAddress = null, Object? dnsServerAddress = null, }) { return _then(_$AndroidVpnOptionsImpl( enable: null == enable ? _value.enable : enable // ignore: cast_nullable_to_non_nullable as bool, port: null == port ? _value.port : port // ignore: cast_nullable_to_non_nullable as int, accessControl: freezed == accessControl ? _value.accessControl : accessControl // ignore: cast_nullable_to_non_nullable as AccessControl?, allowBypass: null == allowBypass ? _value.allowBypass : allowBypass // ignore: cast_nullable_to_non_nullable as bool, systemProxy: null == systemProxy ? _value.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool, bypassDomain: null == bypassDomain ? _value._bypassDomain : bypassDomain // ignore: cast_nullable_to_non_nullable as List, ipv4Address: null == ipv4Address ? _value.ipv4Address : ipv4Address // ignore: cast_nullable_to_non_nullable as String, ipv6Address: null == ipv6Address ? _value.ipv6Address : ipv6Address // ignore: cast_nullable_to_non_nullable as String, routeAddress: null == routeAddress ? _value._routeAddress : routeAddress // ignore: cast_nullable_to_non_nullable as List, dnsServerAddress: null == dnsServerAddress ? _value.dnsServerAddress : dnsServerAddress // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$AndroidVpnOptionsImpl implements _AndroidVpnOptions { const _$AndroidVpnOptionsImpl( {required this.enable, required this.port, required this.accessControl, required this.allowBypass, required this.systemProxy, required final List bypassDomain, required this.ipv4Address, required this.ipv6Address, required final List routeAddress, required this.dnsServerAddress}) : _bypassDomain = bypassDomain, _routeAddress = routeAddress; factory _$AndroidVpnOptionsImpl.fromJson(Map json) => _$$AndroidVpnOptionsImplFromJson(json); @override final bool enable; @override final int port; @override final AccessControl? accessControl; @override final bool allowBypass; @override final bool systemProxy; final List _bypassDomain; @override List get bypassDomain { if (_bypassDomain is EqualUnmodifiableListView) return _bypassDomain; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_bypassDomain); } @override final String ipv4Address; @override final String ipv6Address; final List _routeAddress; @override List get routeAddress { if (_routeAddress is EqualUnmodifiableListView) return _routeAddress; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_routeAddress); } @override final String dnsServerAddress; @override String toString() { return 'AndroidVpnOptions(enable: $enable, port: $port, accessControl: $accessControl, allowBypass: $allowBypass, systemProxy: $systemProxy, bypassDomain: $bypassDomain, ipv4Address: $ipv4Address, ipv6Address: $ipv6Address, routeAddress: $routeAddress, dnsServerAddress: $dnsServerAddress)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AndroidVpnOptionsImpl && (identical(other.enable, enable) || other.enable == enable) && (identical(other.port, port) || other.port == port) && (identical(other.accessControl, accessControl) || other.accessControl == accessControl) && (identical(other.allowBypass, allowBypass) || other.allowBypass == allowBypass) && (identical(other.systemProxy, systemProxy) || other.systemProxy == systemProxy) && const DeepCollectionEquality() .equals(other._bypassDomain, _bypassDomain) && (identical(other.ipv4Address, ipv4Address) || other.ipv4Address == ipv4Address) && (identical(other.ipv6Address, ipv6Address) || other.ipv6Address == ipv6Address) && const DeepCollectionEquality() .equals(other._routeAddress, _routeAddress) && (identical(other.dnsServerAddress, dnsServerAddress) || other.dnsServerAddress == dnsServerAddress)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, enable, port, accessControl, allowBypass, systemProxy, const DeepCollectionEquality().hash(_bypassDomain), ipv4Address, ipv6Address, const DeepCollectionEquality().hash(_routeAddress), dnsServerAddress); /// Create a copy of AndroidVpnOptions /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AndroidVpnOptionsImplCopyWith<_$AndroidVpnOptionsImpl> get copyWith => __$$AndroidVpnOptionsImplCopyWithImpl<_$AndroidVpnOptionsImpl>( this, _$identity); @override Map toJson() { return _$$AndroidVpnOptionsImplToJson( this, ); } } abstract class _AndroidVpnOptions implements AndroidVpnOptions { const factory _AndroidVpnOptions( {required final bool enable, required final int port, required final AccessControl? accessControl, required final bool allowBypass, required final bool systemProxy, required final List bypassDomain, required final String ipv4Address, required final String ipv6Address, required final List routeAddress, required final String dnsServerAddress}) = _$AndroidVpnOptionsImpl; factory _AndroidVpnOptions.fromJson(Map json) = _$AndroidVpnOptionsImpl.fromJson; @override bool get enable; @override int get port; @override AccessControl? get accessControl; @override bool get allowBypass; @override bool get systemProxy; @override List get bypassDomain; @override String get ipv4Address; @override String get ipv6Address; @override List get routeAddress; @override String get dnsServerAddress; /// Create a copy of AndroidVpnOptions /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$AndroidVpnOptionsImplCopyWith<_$AndroidVpnOptionsImpl> get copyWith => throw _privateConstructorUsedError; } ConfigExtendedParams _$ConfigExtendedParamsFromJson(Map json) { return _ConfigExtendedParams.fromJson(json); } /// @nodoc mixin _$ConfigExtendedParams { @JsonKey(name: "is-patch") bool get isPatch => throw _privateConstructorUsedError; @JsonKey(name: "is-compatible") bool get isCompatible => throw _privateConstructorUsedError; @JsonKey(name: "selected-map") Map get selectedMap => throw _privateConstructorUsedError; @JsonKey(name: "override-dns") bool get overrideDns => throw _privateConstructorUsedError; @JsonKey(name: "test-url") String get testUrl => throw _privateConstructorUsedError; /// Serializes this ConfigExtendedParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ConfigExtendedParams /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ConfigExtendedParamsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ConfigExtendedParamsCopyWith<$Res> { factory $ConfigExtendedParamsCopyWith(ConfigExtendedParams value, $Res Function(ConfigExtendedParams) then) = _$ConfigExtendedParamsCopyWithImpl<$Res, ConfigExtendedParams>; @useResult $Res call( {@JsonKey(name: "is-patch") bool isPatch, @JsonKey(name: "is-compatible") bool isCompatible, @JsonKey(name: "selected-map") Map selectedMap, @JsonKey(name: "override-dns") bool overrideDns, @JsonKey(name: "test-url") String testUrl}); } /// @nodoc class _$ConfigExtendedParamsCopyWithImpl<$Res, $Val extends ConfigExtendedParams> implements $ConfigExtendedParamsCopyWith<$Res> { _$ConfigExtendedParamsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ConfigExtendedParams /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? isPatch = null, Object? isCompatible = null, Object? selectedMap = null, Object? overrideDns = null, Object? testUrl = null, }) { return _then(_value.copyWith( isPatch: null == isPatch ? _value.isPatch : isPatch // ignore: cast_nullable_to_non_nullable as bool, isCompatible: null == isCompatible ? _value.isCompatible : isCompatible // ignore: cast_nullable_to_non_nullable as bool, selectedMap: null == selectedMap ? _value.selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map, overrideDns: null == overrideDns ? _value.overrideDns : overrideDns // ignore: cast_nullable_to_non_nullable as bool, testUrl: null == testUrl ? _value.testUrl : testUrl // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$ConfigExtendedParamsImplCopyWith<$Res> implements $ConfigExtendedParamsCopyWith<$Res> { factory _$$ConfigExtendedParamsImplCopyWith(_$ConfigExtendedParamsImpl value, $Res Function(_$ConfigExtendedParamsImpl) then) = __$$ConfigExtendedParamsImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "is-patch") bool isPatch, @JsonKey(name: "is-compatible") bool isCompatible, @JsonKey(name: "selected-map") Map selectedMap, @JsonKey(name: "override-dns") bool overrideDns, @JsonKey(name: "test-url") String testUrl}); } /// @nodoc class __$$ConfigExtendedParamsImplCopyWithImpl<$Res> extends _$ConfigExtendedParamsCopyWithImpl<$Res, _$ConfigExtendedParamsImpl> implements _$$ConfigExtendedParamsImplCopyWith<$Res> { __$$ConfigExtendedParamsImplCopyWithImpl(_$ConfigExtendedParamsImpl _value, $Res Function(_$ConfigExtendedParamsImpl) _then) : super(_value, _then); /// Create a copy of ConfigExtendedParams /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? isPatch = null, Object? isCompatible = null, Object? selectedMap = null, Object? overrideDns = null, Object? testUrl = null, }) { return _then(_$ConfigExtendedParamsImpl( isPatch: null == isPatch ? _value.isPatch : isPatch // ignore: cast_nullable_to_non_nullable as bool, isCompatible: null == isCompatible ? _value.isCompatible : isCompatible // ignore: cast_nullable_to_non_nullable as bool, selectedMap: null == selectedMap ? _value._selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map, overrideDns: null == overrideDns ? _value.overrideDns : overrideDns // ignore: cast_nullable_to_non_nullable as bool, testUrl: null == testUrl ? _value.testUrl : testUrl // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$ConfigExtendedParamsImpl implements _ConfigExtendedParams { const _$ConfigExtendedParamsImpl( {@JsonKey(name: "is-patch") required this.isPatch, @JsonKey(name: "is-compatible") required this.isCompatible, @JsonKey(name: "selected-map") required final Map selectedMap, @JsonKey(name: "override-dns") required this.overrideDns, @JsonKey(name: "test-url") required this.testUrl}) : _selectedMap = selectedMap; factory _$ConfigExtendedParamsImpl.fromJson(Map json) => _$$ConfigExtendedParamsImplFromJson(json); @override @JsonKey(name: "is-patch") final bool isPatch; @override @JsonKey(name: "is-compatible") final bool isCompatible; final Map _selectedMap; @override @JsonKey(name: "selected-map") Map get selectedMap { if (_selectedMap is EqualUnmodifiableMapView) return _selectedMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_selectedMap); } @override @JsonKey(name: "override-dns") final bool overrideDns; @override @JsonKey(name: "test-url") final String testUrl; @override String toString() { return 'ConfigExtendedParams(isPatch: $isPatch, isCompatible: $isCompatible, selectedMap: $selectedMap, overrideDns: $overrideDns, testUrl: $testUrl)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfigExtendedParamsImpl && (identical(other.isPatch, isPatch) || other.isPatch == isPatch) && (identical(other.isCompatible, isCompatible) || other.isCompatible == isCompatible) && const DeepCollectionEquality() .equals(other._selectedMap, _selectedMap) && (identical(other.overrideDns, overrideDns) || other.overrideDns == overrideDns) && (identical(other.testUrl, testUrl) || other.testUrl == testUrl)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, isPatch, isCompatible, const DeepCollectionEquality().hash(_selectedMap), overrideDns, testUrl); /// Create a copy of ConfigExtendedParams /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfigExtendedParamsImplCopyWith<_$ConfigExtendedParamsImpl> get copyWith => __$$ConfigExtendedParamsImplCopyWithImpl<_$ConfigExtendedParamsImpl>( this, _$identity); @override Map toJson() { return _$$ConfigExtendedParamsImplToJson( this, ); } } abstract class _ConfigExtendedParams implements ConfigExtendedParams { const factory _ConfigExtendedParams( {@JsonKey(name: "is-patch") required final bool isPatch, @JsonKey(name: "is-compatible") required final bool isCompatible, @JsonKey(name: "selected-map") required final Map selectedMap, @JsonKey(name: "override-dns") required final bool overrideDns, @JsonKey(name: "test-url") required final String testUrl}) = _$ConfigExtendedParamsImpl; factory _ConfigExtendedParams.fromJson(Map json) = _$ConfigExtendedParamsImpl.fromJson; @override @JsonKey(name: "is-patch") bool get isPatch; @override @JsonKey(name: "is-compatible") bool get isCompatible; @override @JsonKey(name: "selected-map") Map get selectedMap; @override @JsonKey(name: "override-dns") bool get overrideDns; @override @JsonKey(name: "test-url") String get testUrl; /// Create a copy of ConfigExtendedParams /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfigExtendedParamsImplCopyWith<_$ConfigExtendedParamsImpl> get copyWith => throw _privateConstructorUsedError; } UpdateConfigParams _$UpdateConfigParamsFromJson(Map json) { return _UpdateConfigParams.fromJson(json); } /// @nodoc mixin _$UpdateConfigParams { @JsonKey(name: "profile-id") String get profileId => throw _privateConstructorUsedError; ClashConfig get config => throw _privateConstructorUsedError; ConfigExtendedParams get params => throw _privateConstructorUsedError; /// Serializes this UpdateConfigParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of UpdateConfigParams /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $UpdateConfigParamsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UpdateConfigParamsCopyWith<$Res> { factory $UpdateConfigParamsCopyWith( UpdateConfigParams value, $Res Function(UpdateConfigParams) then) = _$UpdateConfigParamsCopyWithImpl<$Res, UpdateConfigParams>; @useResult $Res call( {@JsonKey(name: "profile-id") String profileId, ClashConfig config, ConfigExtendedParams params}); $ConfigExtendedParamsCopyWith<$Res> get params; } /// @nodoc class _$UpdateConfigParamsCopyWithImpl<$Res, $Val extends UpdateConfigParams> implements $UpdateConfigParamsCopyWith<$Res> { _$UpdateConfigParamsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of UpdateConfigParams /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? profileId = null, Object? config = null, Object? params = null, }) { return _then(_value.copyWith( profileId: null == profileId ? _value.profileId : profileId // ignore: cast_nullable_to_non_nullable as String, config: null == config ? _value.config : config // ignore: cast_nullable_to_non_nullable as ClashConfig, params: null == params ? _value.params : params // ignore: cast_nullable_to_non_nullable as ConfigExtendedParams, ) as $Val); } /// Create a copy of UpdateConfigParams /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ConfigExtendedParamsCopyWith<$Res> get params { return $ConfigExtendedParamsCopyWith<$Res>(_value.params, (value) { return _then(_value.copyWith(params: value) as $Val); }); } } /// @nodoc abstract class _$$UpdateConfigParamsImplCopyWith<$Res> implements $UpdateConfigParamsCopyWith<$Res> { factory _$$UpdateConfigParamsImplCopyWith(_$UpdateConfigParamsImpl value, $Res Function(_$UpdateConfigParamsImpl) then) = __$$UpdateConfigParamsImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "profile-id") String profileId, ClashConfig config, ConfigExtendedParams params}); @override $ConfigExtendedParamsCopyWith<$Res> get params; } /// @nodoc class __$$UpdateConfigParamsImplCopyWithImpl<$Res> extends _$UpdateConfigParamsCopyWithImpl<$Res, _$UpdateConfigParamsImpl> implements _$$UpdateConfigParamsImplCopyWith<$Res> { __$$UpdateConfigParamsImplCopyWithImpl(_$UpdateConfigParamsImpl _value, $Res Function(_$UpdateConfigParamsImpl) _then) : super(_value, _then); /// Create a copy of UpdateConfigParams /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? profileId = null, Object? config = null, Object? params = null, }) { return _then(_$UpdateConfigParamsImpl( profileId: null == profileId ? _value.profileId : profileId // ignore: cast_nullable_to_non_nullable as String, config: null == config ? _value.config : config // ignore: cast_nullable_to_non_nullable as ClashConfig, params: null == params ? _value.params : params // ignore: cast_nullable_to_non_nullable as ConfigExtendedParams, )); } } /// @nodoc @JsonSerializable() class _$UpdateConfigParamsImpl implements _UpdateConfigParams { const _$UpdateConfigParamsImpl( {@JsonKey(name: "profile-id") required this.profileId, required this.config, required this.params}); factory _$UpdateConfigParamsImpl.fromJson(Map json) => _$$UpdateConfigParamsImplFromJson(json); @override @JsonKey(name: "profile-id") final String profileId; @override final ClashConfig config; @override final ConfigExtendedParams params; @override String toString() { return 'UpdateConfigParams(profileId: $profileId, config: $config, params: $params)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UpdateConfigParamsImpl && (identical(other.profileId, profileId) || other.profileId == profileId) && (identical(other.config, config) || other.config == config) && (identical(other.params, params) || other.params == params)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, profileId, config, params); /// Create a copy of UpdateConfigParams /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UpdateConfigParamsImplCopyWith<_$UpdateConfigParamsImpl> get copyWith => __$$UpdateConfigParamsImplCopyWithImpl<_$UpdateConfigParamsImpl>( this, _$identity); @override Map toJson() { return _$$UpdateConfigParamsImplToJson( this, ); } } abstract class _UpdateConfigParams implements UpdateConfigParams { const factory _UpdateConfigParams( {@JsonKey(name: "profile-id") required final String profileId, required final ClashConfig config, required final ConfigExtendedParams params}) = _$UpdateConfigParamsImpl; factory _UpdateConfigParams.fromJson(Map json) = _$UpdateConfigParamsImpl.fromJson; @override @JsonKey(name: "profile-id") String get profileId; @override ClashConfig get config; @override ConfigExtendedParams get params; /// Create a copy of UpdateConfigParams /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$UpdateConfigParamsImplCopyWith<_$UpdateConfigParamsImpl> get copyWith => throw _privateConstructorUsedError; } ChangeProxyParams _$ChangeProxyParamsFromJson(Map json) { return _ChangeProxyParams.fromJson(json); } /// @nodoc mixin _$ChangeProxyParams { @JsonKey(name: "group-name") String get groupName => throw _privateConstructorUsedError; @JsonKey(name: "proxy-name") String get proxyName => throw _privateConstructorUsedError; /// Serializes this ChangeProxyParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ChangeProxyParams /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ChangeProxyParamsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChangeProxyParamsCopyWith<$Res> { factory $ChangeProxyParamsCopyWith( ChangeProxyParams value, $Res Function(ChangeProxyParams) then) = _$ChangeProxyParamsCopyWithImpl<$Res, ChangeProxyParams>; @useResult $Res call( {@JsonKey(name: "group-name") String groupName, @JsonKey(name: "proxy-name") String proxyName}); } /// @nodoc class _$ChangeProxyParamsCopyWithImpl<$Res, $Val extends ChangeProxyParams> implements $ChangeProxyParamsCopyWith<$Res> { _$ChangeProxyParamsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ChangeProxyParams /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? groupName = null, Object? proxyName = null, }) { return _then(_value.copyWith( groupName: null == groupName ? _value.groupName : groupName // ignore: cast_nullable_to_non_nullable as String, proxyName: null == proxyName ? _value.proxyName : proxyName // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$ChangeProxyParamsImplCopyWith<$Res> implements $ChangeProxyParamsCopyWith<$Res> { factory _$$ChangeProxyParamsImplCopyWith(_$ChangeProxyParamsImpl value, $Res Function(_$ChangeProxyParamsImpl) then) = __$$ChangeProxyParamsImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "group-name") String groupName, @JsonKey(name: "proxy-name") String proxyName}); } /// @nodoc class __$$ChangeProxyParamsImplCopyWithImpl<$Res> extends _$ChangeProxyParamsCopyWithImpl<$Res, _$ChangeProxyParamsImpl> implements _$$ChangeProxyParamsImplCopyWith<$Res> { __$$ChangeProxyParamsImplCopyWithImpl(_$ChangeProxyParamsImpl _value, $Res Function(_$ChangeProxyParamsImpl) _then) : super(_value, _then); /// Create a copy of ChangeProxyParams /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? groupName = null, Object? proxyName = null, }) { return _then(_$ChangeProxyParamsImpl( groupName: null == groupName ? _value.groupName : groupName // ignore: cast_nullable_to_non_nullable as String, proxyName: null == proxyName ? _value.proxyName : proxyName // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$ChangeProxyParamsImpl implements _ChangeProxyParams { const _$ChangeProxyParamsImpl( {@JsonKey(name: "group-name") required this.groupName, @JsonKey(name: "proxy-name") required this.proxyName}); factory _$ChangeProxyParamsImpl.fromJson(Map json) => _$$ChangeProxyParamsImplFromJson(json); @override @JsonKey(name: "group-name") final String groupName; @override @JsonKey(name: "proxy-name") final String proxyName; @override String toString() { return 'ChangeProxyParams(groupName: $groupName, proxyName: $proxyName)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangeProxyParamsImpl && (identical(other.groupName, groupName) || other.groupName == groupName) && (identical(other.proxyName, proxyName) || other.proxyName == proxyName)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, groupName, proxyName); /// Create a copy of ChangeProxyParams /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChangeProxyParamsImplCopyWith<_$ChangeProxyParamsImpl> get copyWith => __$$ChangeProxyParamsImplCopyWithImpl<_$ChangeProxyParamsImpl>( this, _$identity); @override Map toJson() { return _$$ChangeProxyParamsImplToJson( this, ); } } abstract class _ChangeProxyParams implements ChangeProxyParams { const factory _ChangeProxyParams( {@JsonKey(name: "group-name") required final String groupName, @JsonKey(name: "proxy-name") required final String proxyName}) = _$ChangeProxyParamsImpl; factory _ChangeProxyParams.fromJson(Map json) = _$ChangeProxyParamsImpl.fromJson; @override @JsonKey(name: "group-name") String get groupName; @override @JsonKey(name: "proxy-name") String get proxyName; /// Create a copy of ChangeProxyParams /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ChangeProxyParamsImplCopyWith<_$ChangeProxyParamsImpl> get copyWith => throw _privateConstructorUsedError; } AppMessage _$AppMessageFromJson(Map json) { return _AppMessage.fromJson(json); } /// @nodoc mixin _$AppMessage { AppMessageType get type => throw _privateConstructorUsedError; dynamic get data => throw _privateConstructorUsedError; /// Serializes this AppMessage to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of AppMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $AppMessageCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AppMessageCopyWith<$Res> { factory $AppMessageCopyWith( AppMessage value, $Res Function(AppMessage) then) = _$AppMessageCopyWithImpl<$Res, AppMessage>; @useResult $Res call({AppMessageType type, dynamic data}); } /// @nodoc class _$AppMessageCopyWithImpl<$Res, $Val extends AppMessage> implements $AppMessageCopyWith<$Res> { _$AppMessageCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of AppMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? type = null, Object? data = freezed, }) { return _then(_value.copyWith( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as AppMessageType, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as dynamic, ) as $Val); } } /// @nodoc abstract class _$$AppMessageImplCopyWith<$Res> implements $AppMessageCopyWith<$Res> { factory _$$AppMessageImplCopyWith( _$AppMessageImpl value, $Res Function(_$AppMessageImpl) then) = __$$AppMessageImplCopyWithImpl<$Res>; @override @useResult $Res call({AppMessageType type, dynamic data}); } /// @nodoc class __$$AppMessageImplCopyWithImpl<$Res> extends _$AppMessageCopyWithImpl<$Res, _$AppMessageImpl> implements _$$AppMessageImplCopyWith<$Res> { __$$AppMessageImplCopyWithImpl( _$AppMessageImpl _value, $Res Function(_$AppMessageImpl) _then) : super(_value, _then); /// Create a copy of AppMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? type = null, Object? data = freezed, }) { return _then(_$AppMessageImpl( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as AppMessageType, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as dynamic, )); } } /// @nodoc @JsonSerializable() class _$AppMessageImpl implements _AppMessage { const _$AppMessageImpl({required this.type, this.data}); factory _$AppMessageImpl.fromJson(Map json) => _$$AppMessageImplFromJson(json); @override final AppMessageType type; @override final dynamic data; @override String toString() { return 'AppMessage(type: $type, data: $data)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AppMessageImpl && (identical(other.type, type) || other.type == type) && const DeepCollectionEquality().equals(other.data, data)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, const DeepCollectionEquality().hash(data)); /// Create a copy of AppMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AppMessageImplCopyWith<_$AppMessageImpl> get copyWith => __$$AppMessageImplCopyWithImpl<_$AppMessageImpl>(this, _$identity); @override Map toJson() { return _$$AppMessageImplToJson( this, ); } } abstract class _AppMessage implements AppMessage { const factory _AppMessage( {required final AppMessageType type, final dynamic data}) = _$AppMessageImpl; factory _AppMessage.fromJson(Map json) = _$AppMessageImpl.fromJson; @override AppMessageType get type; @override dynamic get data; /// Create a copy of AppMessage /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$AppMessageImplCopyWith<_$AppMessageImpl> get copyWith => throw _privateConstructorUsedError; } ServiceMessage _$ServiceMessageFromJson(Map json) { return _ServiceMessage.fromJson(json); } /// @nodoc mixin _$ServiceMessage { ServiceMessageType get type => throw _privateConstructorUsedError; dynamic get data => throw _privateConstructorUsedError; /// Serializes this ServiceMessage to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ServiceMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ServiceMessageCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ServiceMessageCopyWith<$Res> { factory $ServiceMessageCopyWith( ServiceMessage value, $Res Function(ServiceMessage) then) = _$ServiceMessageCopyWithImpl<$Res, ServiceMessage>; @useResult $Res call({ServiceMessageType type, dynamic data}); } /// @nodoc class _$ServiceMessageCopyWithImpl<$Res, $Val extends ServiceMessage> implements $ServiceMessageCopyWith<$Res> { _$ServiceMessageCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ServiceMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? type = null, Object? data = freezed, }) { return _then(_value.copyWith( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as ServiceMessageType, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as dynamic, ) as $Val); } } /// @nodoc abstract class _$$ServiceMessageImplCopyWith<$Res> implements $ServiceMessageCopyWith<$Res> { factory _$$ServiceMessageImplCopyWith(_$ServiceMessageImpl value, $Res Function(_$ServiceMessageImpl) then) = __$$ServiceMessageImplCopyWithImpl<$Res>; @override @useResult $Res call({ServiceMessageType type, dynamic data}); } /// @nodoc class __$$ServiceMessageImplCopyWithImpl<$Res> extends _$ServiceMessageCopyWithImpl<$Res, _$ServiceMessageImpl> implements _$$ServiceMessageImplCopyWith<$Res> { __$$ServiceMessageImplCopyWithImpl( _$ServiceMessageImpl _value, $Res Function(_$ServiceMessageImpl) _then) : super(_value, _then); /// Create a copy of ServiceMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? type = null, Object? data = freezed, }) { return _then(_$ServiceMessageImpl( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as ServiceMessageType, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as dynamic, )); } } /// @nodoc @JsonSerializable() class _$ServiceMessageImpl implements _ServiceMessage { const _$ServiceMessageImpl({required this.type, this.data}); factory _$ServiceMessageImpl.fromJson(Map json) => _$$ServiceMessageImplFromJson(json); @override final ServiceMessageType type; @override final dynamic data; @override String toString() { return 'ServiceMessage(type: $type, data: $data)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ServiceMessageImpl && (identical(other.type, type) || other.type == type) && const DeepCollectionEquality().equals(other.data, data)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, const DeepCollectionEquality().hash(data)); /// Create a copy of ServiceMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ServiceMessageImplCopyWith<_$ServiceMessageImpl> get copyWith => __$$ServiceMessageImplCopyWithImpl<_$ServiceMessageImpl>( this, _$identity); @override Map toJson() { return _$$ServiceMessageImplToJson( this, ); } } abstract class _ServiceMessage implements ServiceMessage { const factory _ServiceMessage( {required final ServiceMessageType type, final dynamic data}) = _$ServiceMessageImpl; factory _ServiceMessage.fromJson(Map json) = _$ServiceMessageImpl.fromJson; @override ServiceMessageType get type; @override dynamic get data; /// Create a copy of ServiceMessage /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ServiceMessageImplCopyWith<_$ServiceMessageImpl> get copyWith => throw _privateConstructorUsedError; } Delay _$DelayFromJson(Map json) { return _Delay.fromJson(json); } /// @nodoc mixin _$Delay { String get name => throw _privateConstructorUsedError; int? get value => throw _privateConstructorUsedError; /// Serializes this Delay to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Delay /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DelayCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DelayCopyWith<$Res> { factory $DelayCopyWith(Delay value, $Res Function(Delay) then) = _$DelayCopyWithImpl<$Res, Delay>; @useResult $Res call({String name, int? value}); } /// @nodoc class _$DelayCopyWithImpl<$Res, $Val extends Delay> implements $DelayCopyWith<$Res> { _$DelayCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Delay /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? value = freezed, }) { return _then(_value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, value: freezed == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int?, ) as $Val); } } /// @nodoc abstract class _$$DelayImplCopyWith<$Res> implements $DelayCopyWith<$Res> { factory _$$DelayImplCopyWith( _$DelayImpl value, $Res Function(_$DelayImpl) then) = __$$DelayImplCopyWithImpl<$Res>; @override @useResult $Res call({String name, int? value}); } /// @nodoc class __$$DelayImplCopyWithImpl<$Res> extends _$DelayCopyWithImpl<$Res, _$DelayImpl> implements _$$DelayImplCopyWith<$Res> { __$$DelayImplCopyWithImpl( _$DelayImpl _value, $Res Function(_$DelayImpl) _then) : super(_value, _then); /// Create a copy of Delay /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? value = freezed, }) { return _then(_$DelayImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, value: freezed == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int?, )); } } /// @nodoc @JsonSerializable() class _$DelayImpl implements _Delay { const _$DelayImpl({required this.name, this.value}); factory _$DelayImpl.fromJson(Map json) => _$$DelayImplFromJson(json); @override final String name; @override final int? value; @override String toString() { return 'Delay(name: $name, value: $value)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DelayImpl && (identical(other.name, name) || other.name == name) && (identical(other.value, value) || other.value == value)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, value); /// Create a copy of Delay /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DelayImplCopyWith<_$DelayImpl> get copyWith => __$$DelayImplCopyWithImpl<_$DelayImpl>(this, _$identity); @override Map toJson() { return _$$DelayImplToJson( this, ); } } abstract class _Delay implements Delay { const factory _Delay({required final String name, final int? value}) = _$DelayImpl; factory _Delay.fromJson(Map json) = _$DelayImpl.fromJson; @override String get name; @override int? get value; /// Create a copy of Delay /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DelayImplCopyWith<_$DelayImpl> get copyWith => throw _privateConstructorUsedError; } Now _$NowFromJson(Map json) { return _Now.fromJson(json); } /// @nodoc mixin _$Now { String get name => throw _privateConstructorUsedError; String get value => throw _privateConstructorUsedError; /// Serializes this Now to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Now /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $NowCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $NowCopyWith<$Res> { factory $NowCopyWith(Now value, $Res Function(Now) then) = _$NowCopyWithImpl<$Res, Now>; @useResult $Res call({String name, String value}); } /// @nodoc class _$NowCopyWithImpl<$Res, $Val extends Now> implements $NowCopyWith<$Res> { _$NowCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Now /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? value = null, }) { return _then(_value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$NowImplCopyWith<$Res> implements $NowCopyWith<$Res> { factory _$$NowImplCopyWith(_$NowImpl value, $Res Function(_$NowImpl) then) = __$$NowImplCopyWithImpl<$Res>; @override @useResult $Res call({String name, String value}); } /// @nodoc class __$$NowImplCopyWithImpl<$Res> extends _$NowCopyWithImpl<$Res, _$NowImpl> implements _$$NowImplCopyWith<$Res> { __$$NowImplCopyWithImpl(_$NowImpl _value, $Res Function(_$NowImpl) _then) : super(_value, _then); /// Create a copy of Now /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? value = null, }) { return _then(_$NowImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$NowImpl implements _Now { const _$NowImpl({required this.name, required this.value}); factory _$NowImpl.fromJson(Map json) => _$$NowImplFromJson(json); @override final String name; @override final String value; @override String toString() { return 'Now(name: $name, value: $value)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NowImpl && (identical(other.name, name) || other.name == name) && (identical(other.value, value) || other.value == value)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, value); /// Create a copy of Now /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$NowImplCopyWith<_$NowImpl> get copyWith => __$$NowImplCopyWithImpl<_$NowImpl>(this, _$identity); @override Map toJson() { return _$$NowImplToJson( this, ); } } abstract class _Now implements Now { const factory _Now( {required final String name, required final String value}) = _$NowImpl; factory _Now.fromJson(Map json) = _$NowImpl.fromJson; @override String get name; @override String get value; /// Create a copy of Now /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$NowImplCopyWith<_$NowImpl> get copyWith => throw _privateConstructorUsedError; } ProcessData _$ProcessDataFromJson(Map json) { return _ProcessData.fromJson(json); } /// @nodoc mixin _$ProcessData { int get id => throw _privateConstructorUsedError; Metadata get metadata => throw _privateConstructorUsedError; /// Serializes this ProcessData to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ProcessData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProcessDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProcessDataCopyWith<$Res> { factory $ProcessDataCopyWith( ProcessData value, $Res Function(ProcessData) then) = _$ProcessDataCopyWithImpl<$Res, ProcessData>; @useResult $Res call({int id, Metadata metadata}); $MetadataCopyWith<$Res> get metadata; } /// @nodoc class _$ProcessDataCopyWithImpl<$Res, $Val extends ProcessData> implements $ProcessDataCopyWith<$Res> { _$ProcessDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProcessData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? metadata = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, metadata: null == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Metadata, ) as $Val); } /// Create a copy of ProcessData /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MetadataCopyWith<$Res> get metadata { return $MetadataCopyWith<$Res>(_value.metadata, (value) { return _then(_value.copyWith(metadata: value) as $Val); }); } } /// @nodoc abstract class _$$ProcessDataImplCopyWith<$Res> implements $ProcessDataCopyWith<$Res> { factory _$$ProcessDataImplCopyWith( _$ProcessDataImpl value, $Res Function(_$ProcessDataImpl) then) = __$$ProcessDataImplCopyWithImpl<$Res>; @override @useResult $Res call({int id, Metadata metadata}); @override $MetadataCopyWith<$Res> get metadata; } /// @nodoc class __$$ProcessDataImplCopyWithImpl<$Res> extends _$ProcessDataCopyWithImpl<$Res, _$ProcessDataImpl> implements _$$ProcessDataImplCopyWith<$Res> { __$$ProcessDataImplCopyWithImpl( _$ProcessDataImpl _value, $Res Function(_$ProcessDataImpl) _then) : super(_value, _then); /// Create a copy of ProcessData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? metadata = null, }) { return _then(_$ProcessDataImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, metadata: null == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Metadata, )); } } /// @nodoc @JsonSerializable() class _$ProcessDataImpl implements _ProcessData { const _$ProcessDataImpl({required this.id, required this.metadata}); factory _$ProcessDataImpl.fromJson(Map json) => _$$ProcessDataImplFromJson(json); @override final int id; @override final Metadata metadata; @override String toString() { return 'ProcessData(id: $id, metadata: $metadata)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProcessDataImpl && (identical(other.id, id) || other.id == id) && (identical(other.metadata, metadata) || other.metadata == metadata)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, metadata); /// Create a copy of ProcessData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProcessDataImplCopyWith<_$ProcessDataImpl> get copyWith => __$$ProcessDataImplCopyWithImpl<_$ProcessDataImpl>(this, _$identity); @override Map toJson() { return _$$ProcessDataImplToJson( this, ); } } abstract class _ProcessData implements ProcessData { const factory _ProcessData( {required final int id, required final Metadata metadata}) = _$ProcessDataImpl; factory _ProcessData.fromJson(Map json) = _$ProcessDataImpl.fromJson; @override int get id; @override Metadata get metadata; /// Create a copy of ProcessData /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProcessDataImplCopyWith<_$ProcessDataImpl> get copyWith => throw _privateConstructorUsedError; } Fd _$FdFromJson(Map json) { return _Fd.fromJson(json); } /// @nodoc mixin _$Fd { int get id => throw _privateConstructorUsedError; int get value => throw _privateConstructorUsedError; /// Serializes this Fd to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Fd /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $FdCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $FdCopyWith<$Res> { factory $FdCopyWith(Fd value, $Res Function(Fd) then) = _$FdCopyWithImpl<$Res, Fd>; @useResult $Res call({int id, int value}); } /// @nodoc class _$FdCopyWithImpl<$Res, $Val extends Fd> implements $FdCopyWith<$Res> { _$FdCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Fd /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? value = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$FdImplCopyWith<$Res> implements $FdCopyWith<$Res> { factory _$$FdImplCopyWith(_$FdImpl value, $Res Function(_$FdImpl) then) = __$$FdImplCopyWithImpl<$Res>; @override @useResult $Res call({int id, int value}); } /// @nodoc class __$$FdImplCopyWithImpl<$Res> extends _$FdCopyWithImpl<$Res, _$FdImpl> implements _$$FdImplCopyWith<$Res> { __$$FdImplCopyWithImpl(_$FdImpl _value, $Res Function(_$FdImpl) _then) : super(_value, _then); /// Create a copy of Fd /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? value = null, }) { return _then(_$FdImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$FdImpl implements _Fd { const _$FdImpl({required this.id, required this.value}); factory _$FdImpl.fromJson(Map json) => _$$FdImplFromJson(json); @override final int id; @override final int value; @override String toString() { return 'Fd(id: $id, value: $value)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FdImpl && (identical(other.id, id) || other.id == id) && (identical(other.value, value) || other.value == value)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, value); /// Create a copy of Fd /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FdImplCopyWith<_$FdImpl> get copyWith => __$$FdImplCopyWithImpl<_$FdImpl>(this, _$identity); @override Map toJson() { return _$$FdImplToJson( this, ); } } abstract class _Fd implements Fd { const factory _Fd({required final int id, required final int value}) = _$FdImpl; factory _Fd.fromJson(Map json) = _$FdImpl.fromJson; @override int get id; @override int get value; /// Create a copy of Fd /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$FdImplCopyWith<_$FdImpl> get copyWith => throw _privateConstructorUsedError; } ProcessMapItem _$ProcessMapItemFromJson(Map json) { return _ProcessMapItem.fromJson(json); } /// @nodoc mixin _$ProcessMapItem { int get id => throw _privateConstructorUsedError; String get value => throw _privateConstructorUsedError; /// Serializes this ProcessMapItem to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ProcessMapItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProcessMapItemCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProcessMapItemCopyWith<$Res> { factory $ProcessMapItemCopyWith( ProcessMapItem value, $Res Function(ProcessMapItem) then) = _$ProcessMapItemCopyWithImpl<$Res, ProcessMapItem>; @useResult $Res call({int id, String value}); } /// @nodoc class _$ProcessMapItemCopyWithImpl<$Res, $Val extends ProcessMapItem> implements $ProcessMapItemCopyWith<$Res> { _$ProcessMapItemCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProcessMapItem /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? value = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$ProcessMapItemImplCopyWith<$Res> implements $ProcessMapItemCopyWith<$Res> { factory _$$ProcessMapItemImplCopyWith(_$ProcessMapItemImpl value, $Res Function(_$ProcessMapItemImpl) then) = __$$ProcessMapItemImplCopyWithImpl<$Res>; @override @useResult $Res call({int id, String value}); } /// @nodoc class __$$ProcessMapItemImplCopyWithImpl<$Res> extends _$ProcessMapItemCopyWithImpl<$Res, _$ProcessMapItemImpl> implements _$$ProcessMapItemImplCopyWith<$Res> { __$$ProcessMapItemImplCopyWithImpl( _$ProcessMapItemImpl _value, $Res Function(_$ProcessMapItemImpl) _then) : super(_value, _then); /// Create a copy of ProcessMapItem /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? value = null, }) { return _then(_$ProcessMapItemImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$ProcessMapItemImpl implements _ProcessMapItem { const _$ProcessMapItemImpl({required this.id, required this.value}); factory _$ProcessMapItemImpl.fromJson(Map json) => _$$ProcessMapItemImplFromJson(json); @override final int id; @override final String value; @override String toString() { return 'ProcessMapItem(id: $id, value: $value)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProcessMapItemImpl && (identical(other.id, id) || other.id == id) && (identical(other.value, value) || other.value == value)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, value); /// Create a copy of ProcessMapItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProcessMapItemImplCopyWith<_$ProcessMapItemImpl> get copyWith => __$$ProcessMapItemImplCopyWithImpl<_$ProcessMapItemImpl>( this, _$identity); @override Map toJson() { return _$$ProcessMapItemImplToJson( this, ); } } abstract class _ProcessMapItem implements ProcessMapItem { const factory _ProcessMapItem( {required final int id, required final String value}) = _$ProcessMapItemImpl; factory _ProcessMapItem.fromJson(Map json) = _$ProcessMapItemImpl.fromJson; @override int get id; @override String get value; /// Create a copy of ProcessMapItem /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProcessMapItemImplCopyWith<_$ProcessMapItemImpl> get copyWith => throw _privateConstructorUsedError; } ProviderSubscriptionInfo _$ProviderSubscriptionInfoFromJson( Map json) { return _ProviderSubscriptionInfo.fromJson(json); } /// @nodoc mixin _$ProviderSubscriptionInfo { @JsonKey(name: "UPLOAD") int get upload => throw _privateConstructorUsedError; @JsonKey(name: "DOWNLOAD") int get download => throw _privateConstructorUsedError; @JsonKey(name: "TOTAL") int get total => throw _privateConstructorUsedError; @JsonKey(name: "EXPIRE") int get expire => throw _privateConstructorUsedError; /// Serializes this ProviderSubscriptionInfo to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ProviderSubscriptionInfo /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProviderSubscriptionInfoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProviderSubscriptionInfoCopyWith<$Res> { factory $ProviderSubscriptionInfoCopyWith(ProviderSubscriptionInfo value, $Res Function(ProviderSubscriptionInfo) then) = _$ProviderSubscriptionInfoCopyWithImpl<$Res, ProviderSubscriptionInfo>; @useResult $Res call( {@JsonKey(name: "UPLOAD") int upload, @JsonKey(name: "DOWNLOAD") int download, @JsonKey(name: "TOTAL") int total, @JsonKey(name: "EXPIRE") int expire}); } /// @nodoc class _$ProviderSubscriptionInfoCopyWithImpl<$Res, $Val extends ProviderSubscriptionInfo> implements $ProviderSubscriptionInfoCopyWith<$Res> { _$ProviderSubscriptionInfoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProviderSubscriptionInfo /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? upload = null, Object? download = null, Object? total = null, Object? expire = null, }) { return _then(_value.copyWith( upload: null == upload ? _value.upload : upload // ignore: cast_nullable_to_non_nullable as int, download: null == download ? _value.download : download // ignore: cast_nullable_to_non_nullable as int, total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable as int, expire: null == expire ? _value.expire : expire // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$ProviderSubscriptionInfoImplCopyWith<$Res> implements $ProviderSubscriptionInfoCopyWith<$Res> { factory _$$ProviderSubscriptionInfoImplCopyWith( _$ProviderSubscriptionInfoImpl value, $Res Function(_$ProviderSubscriptionInfoImpl) then) = __$$ProviderSubscriptionInfoImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "UPLOAD") int upload, @JsonKey(name: "DOWNLOAD") int download, @JsonKey(name: "TOTAL") int total, @JsonKey(name: "EXPIRE") int expire}); } /// @nodoc class __$$ProviderSubscriptionInfoImplCopyWithImpl<$Res> extends _$ProviderSubscriptionInfoCopyWithImpl<$Res, _$ProviderSubscriptionInfoImpl> implements _$$ProviderSubscriptionInfoImplCopyWith<$Res> { __$$ProviderSubscriptionInfoImplCopyWithImpl( _$ProviderSubscriptionInfoImpl _value, $Res Function(_$ProviderSubscriptionInfoImpl) _then) : super(_value, _then); /// Create a copy of ProviderSubscriptionInfo /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? upload = null, Object? download = null, Object? total = null, Object? expire = null, }) { return _then(_$ProviderSubscriptionInfoImpl( upload: null == upload ? _value.upload : upload // ignore: cast_nullable_to_non_nullable as int, download: null == download ? _value.download : download // ignore: cast_nullable_to_non_nullable as int, total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable as int, expire: null == expire ? _value.expire : expire // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$ProviderSubscriptionInfoImpl implements _ProviderSubscriptionInfo { const _$ProviderSubscriptionInfoImpl( {@JsonKey(name: "UPLOAD") this.upload = 0, @JsonKey(name: "DOWNLOAD") this.download = 0, @JsonKey(name: "TOTAL") this.total = 0, @JsonKey(name: "EXPIRE") this.expire = 0}); factory _$ProviderSubscriptionInfoImpl.fromJson(Map json) => _$$ProviderSubscriptionInfoImplFromJson(json); @override @JsonKey(name: "UPLOAD") final int upload; @override @JsonKey(name: "DOWNLOAD") final int download; @override @JsonKey(name: "TOTAL") final int total; @override @JsonKey(name: "EXPIRE") final int expire; @override String toString() { return 'ProviderSubscriptionInfo(upload: $upload, download: $download, total: $total, expire: $expire)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProviderSubscriptionInfoImpl && (identical(other.upload, upload) || other.upload == upload) && (identical(other.download, download) || other.download == download) && (identical(other.total, total) || other.total == total) && (identical(other.expire, expire) || other.expire == expire)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, upload, download, total, expire); /// Create a copy of ProviderSubscriptionInfo /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProviderSubscriptionInfoImplCopyWith<_$ProviderSubscriptionInfoImpl> get copyWith => __$$ProviderSubscriptionInfoImplCopyWithImpl< _$ProviderSubscriptionInfoImpl>(this, _$identity); @override Map toJson() { return _$$ProviderSubscriptionInfoImplToJson( this, ); } } abstract class _ProviderSubscriptionInfo implements ProviderSubscriptionInfo { const factory _ProviderSubscriptionInfo( {@JsonKey(name: "UPLOAD") final int upload, @JsonKey(name: "DOWNLOAD") final int download, @JsonKey(name: "TOTAL") final int total, @JsonKey(name: "EXPIRE") final int expire}) = _$ProviderSubscriptionInfoImpl; factory _ProviderSubscriptionInfo.fromJson(Map json) = _$ProviderSubscriptionInfoImpl.fromJson; @override @JsonKey(name: "UPLOAD") int get upload; @override @JsonKey(name: "DOWNLOAD") int get download; @override @JsonKey(name: "TOTAL") int get total; @override @JsonKey(name: "EXPIRE") int get expire; /// Create a copy of ProviderSubscriptionInfo /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProviderSubscriptionInfoImplCopyWith<_$ProviderSubscriptionInfoImpl> get copyWith => throw _privateConstructorUsedError; } ExternalProvider _$ExternalProviderFromJson(Map json) { return _ExternalProvider.fromJson(json); } /// @nodoc mixin _$ExternalProvider { String get name => throw _privateConstructorUsedError; String get type => throw _privateConstructorUsedError; String? get path => throw _privateConstructorUsedError; int get count => throw _privateConstructorUsedError; @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) SubscriptionInfo? get subscriptionInfo => throw _privateConstructorUsedError; bool get isUpdating => throw _privateConstructorUsedError; @JsonKey(name: "vehicle-type") String get vehicleType => throw _privateConstructorUsedError; @JsonKey(name: "update-at") DateTime get updateAt => throw _privateConstructorUsedError; /// Serializes this ExternalProvider to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ExternalProvider /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ExternalProviderCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ExternalProviderCopyWith<$Res> { factory $ExternalProviderCopyWith( ExternalProvider value, $Res Function(ExternalProvider) then) = _$ExternalProviderCopyWithImpl<$Res, ExternalProvider>; @useResult $Res call( {String name, String type, String? path, int count, @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) SubscriptionInfo? subscriptionInfo, bool isUpdating, @JsonKey(name: "vehicle-type") String vehicleType, @JsonKey(name: "update-at") DateTime updateAt}); $SubscriptionInfoCopyWith<$Res>? get subscriptionInfo; } /// @nodoc class _$ExternalProviderCopyWithImpl<$Res, $Val extends ExternalProvider> implements $ExternalProviderCopyWith<$Res> { _$ExternalProviderCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ExternalProvider /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? type = null, Object? path = freezed, Object? count = null, Object? subscriptionInfo = freezed, Object? isUpdating = null, Object? vehicleType = null, Object? updateAt = null, }) { return _then(_value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String, path: freezed == path ? _value.path : path // ignore: cast_nullable_to_non_nullable as String?, count: null == count ? _value.count : count // ignore: cast_nullable_to_non_nullable as int, subscriptionInfo: freezed == subscriptionInfo ? _value.subscriptionInfo : subscriptionInfo // ignore: cast_nullable_to_non_nullable as SubscriptionInfo?, isUpdating: null == isUpdating ? _value.isUpdating : isUpdating // ignore: cast_nullable_to_non_nullable as bool, vehicleType: null == vehicleType ? _value.vehicleType : vehicleType // ignore: cast_nullable_to_non_nullable as String, updateAt: null == updateAt ? _value.updateAt : updateAt // ignore: cast_nullable_to_non_nullable as DateTime, ) as $Val); } /// Create a copy of ExternalProvider /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SubscriptionInfoCopyWith<$Res>? get subscriptionInfo { if (_value.subscriptionInfo == null) { return null; } return $SubscriptionInfoCopyWith<$Res>(_value.subscriptionInfo!, (value) { return _then(_value.copyWith(subscriptionInfo: value) as $Val); }); } } /// @nodoc abstract class _$$ExternalProviderImplCopyWith<$Res> implements $ExternalProviderCopyWith<$Res> { factory _$$ExternalProviderImplCopyWith(_$ExternalProviderImpl value, $Res Function(_$ExternalProviderImpl) then) = __$$ExternalProviderImplCopyWithImpl<$Res>; @override @useResult $Res call( {String name, String type, String? path, int count, @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) SubscriptionInfo? subscriptionInfo, bool isUpdating, @JsonKey(name: "vehicle-type") String vehicleType, @JsonKey(name: "update-at") DateTime updateAt}); @override $SubscriptionInfoCopyWith<$Res>? get subscriptionInfo; } /// @nodoc class __$$ExternalProviderImplCopyWithImpl<$Res> extends _$ExternalProviderCopyWithImpl<$Res, _$ExternalProviderImpl> implements _$$ExternalProviderImplCopyWith<$Res> { __$$ExternalProviderImplCopyWithImpl(_$ExternalProviderImpl _value, $Res Function(_$ExternalProviderImpl) _then) : super(_value, _then); /// Create a copy of ExternalProvider /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? type = null, Object? path = freezed, Object? count = null, Object? subscriptionInfo = freezed, Object? isUpdating = null, Object? vehicleType = null, Object? updateAt = null, }) { return _then(_$ExternalProviderImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String, path: freezed == path ? _value.path : path // ignore: cast_nullable_to_non_nullable as String?, count: null == count ? _value.count : count // ignore: cast_nullable_to_non_nullable as int, subscriptionInfo: freezed == subscriptionInfo ? _value.subscriptionInfo : subscriptionInfo // ignore: cast_nullable_to_non_nullable as SubscriptionInfo?, isUpdating: null == isUpdating ? _value.isUpdating : isUpdating // ignore: cast_nullable_to_non_nullable as bool, vehicleType: null == vehicleType ? _value.vehicleType : vehicleType // ignore: cast_nullable_to_non_nullable as String, updateAt: null == updateAt ? _value.updateAt : updateAt // ignore: cast_nullable_to_non_nullable as DateTime, )); } } /// @nodoc @JsonSerializable() class _$ExternalProviderImpl implements _ExternalProvider { const _$ExternalProviderImpl( {required this.name, required this.type, this.path, required this.count, @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) this.subscriptionInfo, this.isUpdating = false, @JsonKey(name: "vehicle-type") required this.vehicleType, @JsonKey(name: "update-at") required this.updateAt}); factory _$ExternalProviderImpl.fromJson(Map json) => _$$ExternalProviderImplFromJson(json); @override final String name; @override final String type; @override final String? path; @override final int count; @override @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) final SubscriptionInfo? subscriptionInfo; @override @JsonKey() final bool isUpdating; @override @JsonKey(name: "vehicle-type") final String vehicleType; @override @JsonKey(name: "update-at") final DateTime updateAt; @override String toString() { return 'ExternalProvider(name: $name, type: $type, path: $path, count: $count, subscriptionInfo: $subscriptionInfo, isUpdating: $isUpdating, vehicleType: $vehicleType, updateAt: $updateAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ExternalProviderImpl && (identical(other.name, name) || other.name == name) && (identical(other.type, type) || other.type == type) && (identical(other.path, path) || other.path == path) && (identical(other.count, count) || other.count == count) && (identical(other.subscriptionInfo, subscriptionInfo) || other.subscriptionInfo == subscriptionInfo) && (identical(other.isUpdating, isUpdating) || other.isUpdating == isUpdating) && (identical(other.vehicleType, vehicleType) || other.vehicleType == vehicleType) && (identical(other.updateAt, updateAt) || other.updateAt == updateAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, type, path, count, subscriptionInfo, isUpdating, vehicleType, updateAt); /// Create a copy of ExternalProvider /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ExternalProviderImplCopyWith<_$ExternalProviderImpl> get copyWith => __$$ExternalProviderImplCopyWithImpl<_$ExternalProviderImpl>( this, _$identity); @override Map toJson() { return _$$ExternalProviderImplToJson( this, ); } } abstract class _ExternalProvider implements ExternalProvider { const factory _ExternalProvider( {required final String name, required final String type, final String? path, required final int count, @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) final SubscriptionInfo? subscriptionInfo, final bool isUpdating, @JsonKey(name: "vehicle-type") required final String vehicleType, @JsonKey(name: "update-at") required final DateTime updateAt}) = _$ExternalProviderImpl; factory _ExternalProvider.fromJson(Map json) = _$ExternalProviderImpl.fromJson; @override String get name; @override String get type; @override String? get path; @override int get count; @override @JsonKey(name: "subscription-info", fromJson: subscriptionInfoFormCore) SubscriptionInfo? get subscriptionInfo; @override bool get isUpdating; @override @JsonKey(name: "vehicle-type") String get vehicleType; @override @JsonKey(name: "update-at") DateTime get updateAt; /// Create a copy of ExternalProvider /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ExternalProviderImplCopyWith<_$ExternalProviderImpl> get copyWith => throw _privateConstructorUsedError; } TunProps _$TunPropsFromJson(Map json) { return _TunProps.fromJson(json); } /// @nodoc mixin _$TunProps { int get fd => throw _privateConstructorUsedError; String get gateway => throw _privateConstructorUsedError; String get gateway6 => throw _privateConstructorUsedError; String get portal => throw _privateConstructorUsedError; String get portal6 => throw _privateConstructorUsedError; String get dns => throw _privateConstructorUsedError; String get dns6 => throw _privateConstructorUsedError; /// Serializes this TunProps to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of TunProps /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $TunPropsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TunPropsCopyWith<$Res> { factory $TunPropsCopyWith(TunProps value, $Res Function(TunProps) then) = _$TunPropsCopyWithImpl<$Res, TunProps>; @useResult $Res call( {int fd, String gateway, String gateway6, String portal, String portal6, String dns, String dns6}); } /// @nodoc class _$TunPropsCopyWithImpl<$Res, $Val extends TunProps> implements $TunPropsCopyWith<$Res> { _$TunPropsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of TunProps /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? fd = null, Object? gateway = null, Object? gateway6 = null, Object? portal = null, Object? portal6 = null, Object? dns = null, Object? dns6 = null, }) { return _then(_value.copyWith( fd: null == fd ? _value.fd : fd // ignore: cast_nullable_to_non_nullable as int, gateway: null == gateway ? _value.gateway : gateway // ignore: cast_nullable_to_non_nullable as String, gateway6: null == gateway6 ? _value.gateway6 : gateway6 // ignore: cast_nullable_to_non_nullable as String, portal: null == portal ? _value.portal : portal // ignore: cast_nullable_to_non_nullable as String, portal6: null == portal6 ? _value.portal6 : portal6 // ignore: cast_nullable_to_non_nullable as String, dns: null == dns ? _value.dns : dns // ignore: cast_nullable_to_non_nullable as String, dns6: null == dns6 ? _value.dns6 : dns6 // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$TunPropsImplCopyWith<$Res> implements $TunPropsCopyWith<$Res> { factory _$$TunPropsImplCopyWith( _$TunPropsImpl value, $Res Function(_$TunPropsImpl) then) = __$$TunPropsImplCopyWithImpl<$Res>; @override @useResult $Res call( {int fd, String gateway, String gateway6, String portal, String portal6, String dns, String dns6}); } /// @nodoc class __$$TunPropsImplCopyWithImpl<$Res> extends _$TunPropsCopyWithImpl<$Res, _$TunPropsImpl> implements _$$TunPropsImplCopyWith<$Res> { __$$TunPropsImplCopyWithImpl( _$TunPropsImpl _value, $Res Function(_$TunPropsImpl) _then) : super(_value, _then); /// Create a copy of TunProps /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? fd = null, Object? gateway = null, Object? gateway6 = null, Object? portal = null, Object? portal6 = null, Object? dns = null, Object? dns6 = null, }) { return _then(_$TunPropsImpl( fd: null == fd ? _value.fd : fd // ignore: cast_nullable_to_non_nullable as int, gateway: null == gateway ? _value.gateway : gateway // ignore: cast_nullable_to_non_nullable as String, gateway6: null == gateway6 ? _value.gateway6 : gateway6 // ignore: cast_nullable_to_non_nullable as String, portal: null == portal ? _value.portal : portal // ignore: cast_nullable_to_non_nullable as String, portal6: null == portal6 ? _value.portal6 : portal6 // ignore: cast_nullable_to_non_nullable as String, dns: null == dns ? _value.dns : dns // ignore: cast_nullable_to_non_nullable as String, dns6: null == dns6 ? _value.dns6 : dns6 // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$TunPropsImpl implements _TunProps { const _$TunPropsImpl( {required this.fd, required this.gateway, required this.gateway6, required this.portal, required this.portal6, required this.dns, required this.dns6}); factory _$TunPropsImpl.fromJson(Map json) => _$$TunPropsImplFromJson(json); @override final int fd; @override final String gateway; @override final String gateway6; @override final String portal; @override final String portal6; @override final String dns; @override final String dns6; @override String toString() { return 'TunProps(fd: $fd, gateway: $gateway, gateway6: $gateway6, portal: $portal, portal6: $portal6, dns: $dns, dns6: $dns6)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TunPropsImpl && (identical(other.fd, fd) || other.fd == fd) && (identical(other.gateway, gateway) || other.gateway == gateway) && (identical(other.gateway6, gateway6) || other.gateway6 == gateway6) && (identical(other.portal, portal) || other.portal == portal) && (identical(other.portal6, portal6) || other.portal6 == portal6) && (identical(other.dns, dns) || other.dns == dns) && (identical(other.dns6, dns6) || other.dns6 == dns6)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, fd, gateway, gateway6, portal, portal6, dns, dns6); /// Create a copy of TunProps /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TunPropsImplCopyWith<_$TunPropsImpl> get copyWith => __$$TunPropsImplCopyWithImpl<_$TunPropsImpl>(this, _$identity); @override Map toJson() { return _$$TunPropsImplToJson( this, ); } } abstract class _TunProps implements TunProps { const factory _TunProps( {required final int fd, required final String gateway, required final String gateway6, required final String portal, required final String portal6, required final String dns, required final String dns6}) = _$TunPropsImpl; factory _TunProps.fromJson(Map json) = _$TunPropsImpl.fromJson; @override int get fd; @override String get gateway; @override String get gateway6; @override String get portal; @override String get portal6; @override String get dns; @override String get dns6; /// Create a copy of TunProps /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$TunPropsImplCopyWith<_$TunPropsImpl> get copyWith => throw _privateConstructorUsedError; } Action _$ActionFromJson(Map json) { return _Action.fromJson(json); } /// @nodoc mixin _$Action { ActionMethod get method => throw _privateConstructorUsedError; dynamic get data => throw _privateConstructorUsedError; String get id => throw _privateConstructorUsedError; /// Serializes this Action to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Action /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ActionCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ActionCopyWith<$Res> { factory $ActionCopyWith(Action value, $Res Function(Action) then) = _$ActionCopyWithImpl<$Res, Action>; @useResult $Res call({ActionMethod method, dynamic data, String id}); } /// @nodoc class _$ActionCopyWithImpl<$Res, $Val extends Action> implements $ActionCopyWith<$Res> { _$ActionCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Action /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? method = null, Object? data = freezed, Object? id = null, }) { return _then(_value.copyWith( method: null == method ? _value.method : method // ignore: cast_nullable_to_non_nullable as ActionMethod, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as dynamic, id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$ActionImplCopyWith<$Res> implements $ActionCopyWith<$Res> { factory _$$ActionImplCopyWith( _$ActionImpl value, $Res Function(_$ActionImpl) then) = __$$ActionImplCopyWithImpl<$Res>; @override @useResult $Res call({ActionMethod method, dynamic data, String id}); } /// @nodoc class __$$ActionImplCopyWithImpl<$Res> extends _$ActionCopyWithImpl<$Res, _$ActionImpl> implements _$$ActionImplCopyWith<$Res> { __$$ActionImplCopyWithImpl( _$ActionImpl _value, $Res Function(_$ActionImpl) _then) : super(_value, _then); /// Create a copy of Action /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? method = null, Object? data = freezed, Object? id = null, }) { return _then(_$ActionImpl( method: null == method ? _value.method : method // ignore: cast_nullable_to_non_nullable as ActionMethod, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as dynamic, id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$ActionImpl implements _Action { const _$ActionImpl( {required this.method, required this.data, required this.id}); factory _$ActionImpl.fromJson(Map json) => _$$ActionImplFromJson(json); @override final ActionMethod method; @override final dynamic data; @override final String id; @override String toString() { return 'Action(method: $method, data: $data, id: $id)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ActionImpl && (identical(other.method, method) || other.method == method) && const DeepCollectionEquality().equals(other.data, data) && (identical(other.id, id) || other.id == id)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, method, const DeepCollectionEquality().hash(data), id); /// Create a copy of Action /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ActionImplCopyWith<_$ActionImpl> get copyWith => __$$ActionImplCopyWithImpl<_$ActionImpl>(this, _$identity); @override Map toJson() { return _$$ActionImplToJson( this, ); } } abstract class _Action implements Action { const factory _Action( {required final ActionMethod method, required final dynamic data, required final String id}) = _$ActionImpl; factory _Action.fromJson(Map json) = _$ActionImpl.fromJson; @override ActionMethod get method; @override dynamic get data; @override String get id; /// Create a copy of Action /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ActionImplCopyWith<_$ActionImpl> get copyWith => throw _privateConstructorUsedError; }