nodes_config.freezed.dart 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. // coverage:ignore-file
  2. // GENERATED CODE - DO NOT MODIFY BY HAND
  3. // ignore_for_file: type=lint
  4. // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
  5. part of 'nodes_config.dart';
  6. // **************************************************************************
  7. // FreezedGenerator
  8. // **************************************************************************
  9. T _$identity<T>(T value) => value;
  10. final _privateConstructorUsedError = UnsupportedError(
  11. 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
  12. );
  13. NodesConfig _$NodesConfigFromJson(Map<String, dynamic> json) {
  14. return _NodesConfig.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$NodesConfig {
  18. List<dynamic>? get nodes => throw _privateConstructorUsedError;
  19. String? get tunnelConfig => throw _privateConstructorUsedError;
  20. int? get socketPort => throw _privateConstructorUsedError;
  21. int? get maxTryCount => throw _privateConstructorUsedError;
  22. /// Serializes this NodesConfig to a JSON map.
  23. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  24. /// Create a copy of NodesConfig
  25. /// with the given fields replaced by the non-null parameter values.
  26. @JsonKey(includeFromJson: false, includeToJson: false)
  27. $NodesConfigCopyWith<NodesConfig> get copyWith =>
  28. throw _privateConstructorUsedError;
  29. }
  30. /// @nodoc
  31. abstract class $NodesConfigCopyWith<$Res> {
  32. factory $NodesConfigCopyWith(
  33. NodesConfig value,
  34. $Res Function(NodesConfig) then,
  35. ) = _$NodesConfigCopyWithImpl<$Res, NodesConfig>;
  36. @useResult
  37. $Res call({
  38. List<dynamic>? nodes,
  39. String? tunnelConfig,
  40. int? socketPort,
  41. int? maxTryCount,
  42. });
  43. }
  44. /// @nodoc
  45. class _$NodesConfigCopyWithImpl<$Res, $Val extends NodesConfig>
  46. implements $NodesConfigCopyWith<$Res> {
  47. _$NodesConfigCopyWithImpl(this._value, this._then);
  48. // ignore: unused_field
  49. final $Val _value;
  50. // ignore: unused_field
  51. final $Res Function($Val) _then;
  52. /// Create a copy of NodesConfig
  53. /// with the given fields replaced by the non-null parameter values.
  54. @pragma('vm:prefer-inline')
  55. @override
  56. $Res call({
  57. Object? nodes = freezed,
  58. Object? tunnelConfig = freezed,
  59. Object? socketPort = freezed,
  60. Object? maxTryCount = freezed,
  61. }) {
  62. return _then(
  63. _value.copyWith(
  64. nodes: freezed == nodes
  65. ? _value.nodes
  66. : nodes // ignore: cast_nullable_to_non_nullable
  67. as List<dynamic>?,
  68. tunnelConfig: freezed == tunnelConfig
  69. ? _value.tunnelConfig
  70. : tunnelConfig // ignore: cast_nullable_to_non_nullable
  71. as String?,
  72. socketPort: freezed == socketPort
  73. ? _value.socketPort
  74. : socketPort // ignore: cast_nullable_to_non_nullable
  75. as int?,
  76. maxTryCount: freezed == maxTryCount
  77. ? _value.maxTryCount
  78. : maxTryCount // ignore: cast_nullable_to_non_nullable
  79. as int?,
  80. )
  81. as $Val,
  82. );
  83. }
  84. }
  85. /// @nodoc
  86. abstract class _$$NodesConfigImplCopyWith<$Res>
  87. implements $NodesConfigCopyWith<$Res> {
  88. factory _$$NodesConfigImplCopyWith(
  89. _$NodesConfigImpl value,
  90. $Res Function(_$NodesConfigImpl) then,
  91. ) = __$$NodesConfigImplCopyWithImpl<$Res>;
  92. @override
  93. @useResult
  94. $Res call({
  95. List<dynamic>? nodes,
  96. String? tunnelConfig,
  97. int? socketPort,
  98. int? maxTryCount,
  99. });
  100. }
  101. /// @nodoc
  102. class __$$NodesConfigImplCopyWithImpl<$Res>
  103. extends _$NodesConfigCopyWithImpl<$Res, _$NodesConfigImpl>
  104. implements _$$NodesConfigImplCopyWith<$Res> {
  105. __$$NodesConfigImplCopyWithImpl(
  106. _$NodesConfigImpl _value,
  107. $Res Function(_$NodesConfigImpl) _then,
  108. ) : super(_value, _then);
  109. /// Create a copy of NodesConfig
  110. /// with the given fields replaced by the non-null parameter values.
  111. @pragma('vm:prefer-inline')
  112. @override
  113. $Res call({
  114. Object? nodes = freezed,
  115. Object? tunnelConfig = freezed,
  116. Object? socketPort = freezed,
  117. Object? maxTryCount = freezed,
  118. }) {
  119. return _then(
  120. _$NodesConfigImpl(
  121. nodes: freezed == nodes
  122. ? _value._nodes
  123. : nodes // ignore: cast_nullable_to_non_nullable
  124. as List<dynamic>?,
  125. tunnelConfig: freezed == tunnelConfig
  126. ? _value.tunnelConfig
  127. : tunnelConfig // ignore: cast_nullable_to_non_nullable
  128. as String?,
  129. socketPort: freezed == socketPort
  130. ? _value.socketPort
  131. : socketPort // ignore: cast_nullable_to_non_nullable
  132. as int?,
  133. maxTryCount: freezed == maxTryCount
  134. ? _value.maxTryCount
  135. : maxTryCount // ignore: cast_nullable_to_non_nullable
  136. as int?,
  137. ),
  138. );
  139. }
  140. }
  141. /// @nodoc
  142. @JsonSerializable()
  143. class _$NodesConfigImpl with DiagnosticableTreeMixin implements _NodesConfig {
  144. const _$NodesConfigImpl({
  145. final List<dynamic>? nodes,
  146. this.tunnelConfig,
  147. this.socketPort,
  148. this.maxTryCount,
  149. }) : _nodes = nodes;
  150. factory _$NodesConfigImpl.fromJson(Map<String, dynamic> json) =>
  151. _$$NodesConfigImplFromJson(json);
  152. final List<dynamic>? _nodes;
  153. @override
  154. List<dynamic>? get nodes {
  155. final value = _nodes;
  156. if (value == null) return null;
  157. if (_nodes is EqualUnmodifiableListView) return _nodes;
  158. // ignore: implicit_dynamic_type
  159. return EqualUnmodifiableListView(value);
  160. }
  161. @override
  162. final String? tunnelConfig;
  163. @override
  164. final int? socketPort;
  165. @override
  166. final int? maxTryCount;
  167. @override
  168. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  169. return 'NodesConfig(nodes: $nodes, tunnelConfig: $tunnelConfig, socketPort: $socketPort, maxTryCount: $maxTryCount)';
  170. }
  171. @override
  172. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  173. super.debugFillProperties(properties);
  174. properties
  175. ..add(DiagnosticsProperty('type', 'NodesConfig'))
  176. ..add(DiagnosticsProperty('nodes', nodes))
  177. ..add(DiagnosticsProperty('tunnelConfig', tunnelConfig))
  178. ..add(DiagnosticsProperty('socketPort', socketPort))
  179. ..add(DiagnosticsProperty('maxTryCount', maxTryCount));
  180. }
  181. @override
  182. bool operator ==(Object other) {
  183. return identical(this, other) ||
  184. (other.runtimeType == runtimeType &&
  185. other is _$NodesConfigImpl &&
  186. const DeepCollectionEquality().equals(other._nodes, _nodes) &&
  187. (identical(other.tunnelConfig, tunnelConfig) ||
  188. other.tunnelConfig == tunnelConfig) &&
  189. (identical(other.socketPort, socketPort) ||
  190. other.socketPort == socketPort) &&
  191. (identical(other.maxTryCount, maxTryCount) ||
  192. other.maxTryCount == maxTryCount));
  193. }
  194. @JsonKey(includeFromJson: false, includeToJson: false)
  195. @override
  196. int get hashCode => Object.hash(
  197. runtimeType,
  198. const DeepCollectionEquality().hash(_nodes),
  199. tunnelConfig,
  200. socketPort,
  201. maxTryCount,
  202. );
  203. /// Create a copy of NodesConfig
  204. /// with the given fields replaced by the non-null parameter values.
  205. @JsonKey(includeFromJson: false, includeToJson: false)
  206. @override
  207. @pragma('vm:prefer-inline')
  208. _$$NodesConfigImplCopyWith<_$NodesConfigImpl> get copyWith =>
  209. __$$NodesConfigImplCopyWithImpl<_$NodesConfigImpl>(this, _$identity);
  210. @override
  211. Map<String, dynamic> toJson() {
  212. return _$$NodesConfigImplToJson(this);
  213. }
  214. }
  215. abstract class _NodesConfig implements NodesConfig {
  216. const factory _NodesConfig({
  217. final List<dynamic>? nodes,
  218. final String? tunnelConfig,
  219. final int? socketPort,
  220. final int? maxTryCount,
  221. }) = _$NodesConfigImpl;
  222. factory _NodesConfig.fromJson(Map<String, dynamic> json) =
  223. _$NodesConfigImpl.fromJson;
  224. @override
  225. List<dynamic>? get nodes;
  226. @override
  227. String? get tunnelConfig;
  228. @override
  229. int? get socketPort;
  230. @override
  231. int? get maxTryCount;
  232. /// Create a copy of NodesConfig
  233. /// with the given fields replaced by the non-null parameter values.
  234. @override
  235. @JsonKey(includeFromJson: false, includeToJson: false)
  236. _$$NodesConfigImplCopyWith<_$NodesConfigImpl> get copyWith =>
  237. throw _privateConstructorUsedError;
  238. }