| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- // 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 'nodes_config.dart';
- // **************************************************************************
- // FreezedGenerator
- // **************************************************************************
- T _$identity<T>(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',
- );
- NodesConfig _$NodesConfigFromJson(Map<String, dynamic> json) {
- return _NodesConfig.fromJson(json);
- }
- /// @nodoc
- mixin _$NodesConfig {
- List<dynamic>? get nodes => throw _privateConstructorUsedError;
- String? get tunnelConfig => throw _privateConstructorUsedError;
- int? get socketPort => throw _privateConstructorUsedError;
- int? get maxTryCount => throw _privateConstructorUsedError;
- /// Serializes this NodesConfig to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of NodesConfig
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $NodesConfigCopyWith<NodesConfig> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $NodesConfigCopyWith<$Res> {
- factory $NodesConfigCopyWith(
- NodesConfig value,
- $Res Function(NodesConfig) then,
- ) = _$NodesConfigCopyWithImpl<$Res, NodesConfig>;
- @useResult
- $Res call({
- List<dynamic>? nodes,
- String? tunnelConfig,
- int? socketPort,
- int? maxTryCount,
- });
- }
- /// @nodoc
- class _$NodesConfigCopyWithImpl<$Res, $Val extends NodesConfig>
- implements $NodesConfigCopyWith<$Res> {
- _$NodesConfigCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of NodesConfig
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? nodes = freezed,
- Object? tunnelConfig = freezed,
- Object? socketPort = freezed,
- Object? maxTryCount = freezed,
- }) {
- return _then(
- _value.copyWith(
- nodes: freezed == nodes
- ? _value.nodes
- : nodes // ignore: cast_nullable_to_non_nullable
- as List<dynamic>?,
- tunnelConfig: freezed == tunnelConfig
- ? _value.tunnelConfig
- : tunnelConfig // ignore: cast_nullable_to_non_nullable
- as String?,
- socketPort: freezed == socketPort
- ? _value.socketPort
- : socketPort // ignore: cast_nullable_to_non_nullable
- as int?,
- maxTryCount: freezed == maxTryCount
- ? _value.maxTryCount
- : maxTryCount // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$NodesConfigImplCopyWith<$Res>
- implements $NodesConfigCopyWith<$Res> {
- factory _$$NodesConfigImplCopyWith(
- _$NodesConfigImpl value,
- $Res Function(_$NodesConfigImpl) then,
- ) = __$$NodesConfigImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- List<dynamic>? nodes,
- String? tunnelConfig,
- int? socketPort,
- int? maxTryCount,
- });
- }
- /// @nodoc
- class __$$NodesConfigImplCopyWithImpl<$Res>
- extends _$NodesConfigCopyWithImpl<$Res, _$NodesConfigImpl>
- implements _$$NodesConfigImplCopyWith<$Res> {
- __$$NodesConfigImplCopyWithImpl(
- _$NodesConfigImpl _value,
- $Res Function(_$NodesConfigImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of NodesConfig
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? nodes = freezed,
- Object? tunnelConfig = freezed,
- Object? socketPort = freezed,
- Object? maxTryCount = freezed,
- }) {
- return _then(
- _$NodesConfigImpl(
- nodes: freezed == nodes
- ? _value._nodes
- : nodes // ignore: cast_nullable_to_non_nullable
- as List<dynamic>?,
- tunnelConfig: freezed == tunnelConfig
- ? _value.tunnelConfig
- : tunnelConfig // ignore: cast_nullable_to_non_nullable
- as String?,
- socketPort: freezed == socketPort
- ? _value.socketPort
- : socketPort // ignore: cast_nullable_to_non_nullable
- as int?,
- maxTryCount: freezed == maxTryCount
- ? _value.maxTryCount
- : maxTryCount // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$NodesConfigImpl with DiagnosticableTreeMixin implements _NodesConfig {
- const _$NodesConfigImpl({
- final List<dynamic>? nodes,
- this.tunnelConfig,
- this.socketPort,
- this.maxTryCount,
- }) : _nodes = nodes;
- factory _$NodesConfigImpl.fromJson(Map<String, dynamic> json) =>
- _$$NodesConfigImplFromJson(json);
- final List<dynamic>? _nodes;
- @override
- List<dynamic>? get nodes {
- final value = _nodes;
- if (value == null) return null;
- if (_nodes is EqualUnmodifiableListView) return _nodes;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(value);
- }
- @override
- final String? tunnelConfig;
- @override
- final int? socketPort;
- @override
- final int? maxTryCount;
- @override
- String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
- return 'NodesConfig(nodes: $nodes, tunnelConfig: $tunnelConfig, socketPort: $socketPort, maxTryCount: $maxTryCount)';
- }
- @override
- void debugFillProperties(DiagnosticPropertiesBuilder properties) {
- super.debugFillProperties(properties);
- properties
- ..add(DiagnosticsProperty('type', 'NodesConfig'))
- ..add(DiagnosticsProperty('nodes', nodes))
- ..add(DiagnosticsProperty('tunnelConfig', tunnelConfig))
- ..add(DiagnosticsProperty('socketPort', socketPort))
- ..add(DiagnosticsProperty('maxTryCount', maxTryCount));
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$NodesConfigImpl &&
- const DeepCollectionEquality().equals(other._nodes, _nodes) &&
- (identical(other.tunnelConfig, tunnelConfig) ||
- other.tunnelConfig == tunnelConfig) &&
- (identical(other.socketPort, socketPort) ||
- other.socketPort == socketPort) &&
- (identical(other.maxTryCount, maxTryCount) ||
- other.maxTryCount == maxTryCount));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- const DeepCollectionEquality().hash(_nodes),
- tunnelConfig,
- socketPort,
- maxTryCount,
- );
- /// Create a copy of NodesConfig
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$NodesConfigImplCopyWith<_$NodesConfigImpl> get copyWith =>
- __$$NodesConfigImplCopyWithImpl<_$NodesConfigImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$NodesConfigImplToJson(this);
- }
- }
- abstract class _NodesConfig implements NodesConfig {
- const factory _NodesConfig({
- final List<dynamic>? nodes,
- final String? tunnelConfig,
- final int? socketPort,
- final int? maxTryCount,
- }) = _$NodesConfigImpl;
- factory _NodesConfig.fromJson(Map<String, dynamic> json) =
- _$NodesConfigImpl.fromJson;
- @override
- List<dynamic>? get nodes;
- @override
- String? get tunnelConfig;
- @override
- int? get socketPort;
- @override
- int? get maxTryCount;
- /// Create a copy of NodesConfig
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$NodesConfigImplCopyWith<_$NodesConfigImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|