nodes_config.freezed.dart 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. dynamic get dataConfig => throw _privateConstructorUsedError;
  21. int? get socketPort => throw _privateConstructorUsedError;
  22. int? get maxTryCount => throw _privateConstructorUsedError;
  23. /// Serializes this NodesConfig to a JSON map.
  24. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  25. /// Create a copy of NodesConfig
  26. /// with the given fields replaced by the non-null parameter values.
  27. @JsonKey(includeFromJson: false, includeToJson: false)
  28. $NodesConfigCopyWith<NodesConfig> get copyWith =>
  29. throw _privateConstructorUsedError;
  30. }
  31. /// @nodoc
  32. abstract class $NodesConfigCopyWith<$Res> {
  33. factory $NodesConfigCopyWith(
  34. NodesConfig value,
  35. $Res Function(NodesConfig) then,
  36. ) = _$NodesConfigCopyWithImpl<$Res, NodesConfig>;
  37. @useResult
  38. $Res call({
  39. List<dynamic>? nodes,
  40. String? tunnelConfig,
  41. dynamic dataConfig,
  42. int? socketPort,
  43. int? maxTryCount,
  44. });
  45. }
  46. /// @nodoc
  47. class _$NodesConfigCopyWithImpl<$Res, $Val extends NodesConfig>
  48. implements $NodesConfigCopyWith<$Res> {
  49. _$NodesConfigCopyWithImpl(this._value, this._then);
  50. // ignore: unused_field
  51. final $Val _value;
  52. // ignore: unused_field
  53. final $Res Function($Val) _then;
  54. /// Create a copy of NodesConfig
  55. /// with the given fields replaced by the non-null parameter values.
  56. @pragma('vm:prefer-inline')
  57. @override
  58. $Res call({
  59. Object? nodes = freezed,
  60. Object? tunnelConfig = freezed,
  61. Object? dataConfig = freezed,
  62. Object? socketPort = freezed,
  63. Object? maxTryCount = freezed,
  64. }) {
  65. return _then(
  66. _value.copyWith(
  67. nodes: freezed == nodes
  68. ? _value.nodes
  69. : nodes // ignore: cast_nullable_to_non_nullable
  70. as List<dynamic>?,
  71. tunnelConfig: freezed == tunnelConfig
  72. ? _value.tunnelConfig
  73. : tunnelConfig // ignore: cast_nullable_to_non_nullable
  74. as String?,
  75. dataConfig: freezed == dataConfig
  76. ? _value.dataConfig
  77. : dataConfig // ignore: cast_nullable_to_non_nullable
  78. as dynamic,
  79. socketPort: freezed == socketPort
  80. ? _value.socketPort
  81. : socketPort // ignore: cast_nullable_to_non_nullable
  82. as int?,
  83. maxTryCount: freezed == maxTryCount
  84. ? _value.maxTryCount
  85. : maxTryCount // ignore: cast_nullable_to_non_nullable
  86. as int?,
  87. )
  88. as $Val,
  89. );
  90. }
  91. }
  92. /// @nodoc
  93. abstract class _$$NodesConfigImplCopyWith<$Res>
  94. implements $NodesConfigCopyWith<$Res> {
  95. factory _$$NodesConfigImplCopyWith(
  96. _$NodesConfigImpl value,
  97. $Res Function(_$NodesConfigImpl) then,
  98. ) = __$$NodesConfigImplCopyWithImpl<$Res>;
  99. @override
  100. @useResult
  101. $Res call({
  102. List<dynamic>? nodes,
  103. String? tunnelConfig,
  104. dynamic dataConfig,
  105. int? socketPort,
  106. int? maxTryCount,
  107. });
  108. }
  109. /// @nodoc
  110. class __$$NodesConfigImplCopyWithImpl<$Res>
  111. extends _$NodesConfigCopyWithImpl<$Res, _$NodesConfigImpl>
  112. implements _$$NodesConfigImplCopyWith<$Res> {
  113. __$$NodesConfigImplCopyWithImpl(
  114. _$NodesConfigImpl _value,
  115. $Res Function(_$NodesConfigImpl) _then,
  116. ) : super(_value, _then);
  117. /// Create a copy of NodesConfig
  118. /// with the given fields replaced by the non-null parameter values.
  119. @pragma('vm:prefer-inline')
  120. @override
  121. $Res call({
  122. Object? nodes = freezed,
  123. Object? tunnelConfig = freezed,
  124. Object? dataConfig = freezed,
  125. Object? socketPort = freezed,
  126. Object? maxTryCount = freezed,
  127. }) {
  128. return _then(
  129. _$NodesConfigImpl(
  130. nodes: freezed == nodes
  131. ? _value._nodes
  132. : nodes // ignore: cast_nullable_to_non_nullable
  133. as List<dynamic>?,
  134. tunnelConfig: freezed == tunnelConfig
  135. ? _value.tunnelConfig
  136. : tunnelConfig // ignore: cast_nullable_to_non_nullable
  137. as String?,
  138. dataConfig: freezed == dataConfig
  139. ? _value.dataConfig
  140. : dataConfig // ignore: cast_nullable_to_non_nullable
  141. as dynamic,
  142. socketPort: freezed == socketPort
  143. ? _value.socketPort
  144. : socketPort // ignore: cast_nullable_to_non_nullable
  145. as int?,
  146. maxTryCount: freezed == maxTryCount
  147. ? _value.maxTryCount
  148. : maxTryCount // ignore: cast_nullable_to_non_nullable
  149. as int?,
  150. ),
  151. );
  152. }
  153. }
  154. /// @nodoc
  155. @JsonSerializable()
  156. class _$NodesConfigImpl with DiagnosticableTreeMixin implements _NodesConfig {
  157. const _$NodesConfigImpl({
  158. final List<dynamic>? nodes,
  159. this.tunnelConfig,
  160. this.dataConfig,
  161. this.socketPort,
  162. this.maxTryCount,
  163. }) : _nodes = nodes;
  164. factory _$NodesConfigImpl.fromJson(Map<String, dynamic> json) =>
  165. _$$NodesConfigImplFromJson(json);
  166. final List<dynamic>? _nodes;
  167. @override
  168. List<dynamic>? get nodes {
  169. final value = _nodes;
  170. if (value == null) return null;
  171. if (_nodes is EqualUnmodifiableListView) return _nodes;
  172. // ignore: implicit_dynamic_type
  173. return EqualUnmodifiableListView(value);
  174. }
  175. @override
  176. final String? tunnelConfig;
  177. @override
  178. final dynamic dataConfig;
  179. @override
  180. final int? socketPort;
  181. @override
  182. final int? maxTryCount;
  183. @override
  184. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  185. return 'NodesConfig(nodes: $nodes, tunnelConfig: $tunnelConfig, dataConfig: $dataConfig, socketPort: $socketPort, maxTryCount: $maxTryCount)';
  186. }
  187. @override
  188. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  189. super.debugFillProperties(properties);
  190. properties
  191. ..add(DiagnosticsProperty('type', 'NodesConfig'))
  192. ..add(DiagnosticsProperty('nodes', nodes))
  193. ..add(DiagnosticsProperty('tunnelConfig', tunnelConfig))
  194. ..add(DiagnosticsProperty('dataConfig', dataConfig))
  195. ..add(DiagnosticsProperty('socketPort', socketPort))
  196. ..add(DiagnosticsProperty('maxTryCount', maxTryCount));
  197. }
  198. @override
  199. bool operator ==(Object other) {
  200. return identical(this, other) ||
  201. (other.runtimeType == runtimeType &&
  202. other is _$NodesConfigImpl &&
  203. const DeepCollectionEquality().equals(other._nodes, _nodes) &&
  204. (identical(other.tunnelConfig, tunnelConfig) ||
  205. other.tunnelConfig == tunnelConfig) &&
  206. const DeepCollectionEquality().equals(
  207. other.dataConfig,
  208. dataConfig,
  209. ) &&
  210. (identical(other.socketPort, socketPort) ||
  211. other.socketPort == socketPort) &&
  212. (identical(other.maxTryCount, maxTryCount) ||
  213. other.maxTryCount == maxTryCount));
  214. }
  215. @JsonKey(includeFromJson: false, includeToJson: false)
  216. @override
  217. int get hashCode => Object.hash(
  218. runtimeType,
  219. const DeepCollectionEquality().hash(_nodes),
  220. tunnelConfig,
  221. const DeepCollectionEquality().hash(dataConfig),
  222. socketPort,
  223. maxTryCount,
  224. );
  225. /// Create a copy of NodesConfig
  226. /// with the given fields replaced by the non-null parameter values.
  227. @JsonKey(includeFromJson: false, includeToJson: false)
  228. @override
  229. @pragma('vm:prefer-inline')
  230. _$$NodesConfigImplCopyWith<_$NodesConfigImpl> get copyWith =>
  231. __$$NodesConfigImplCopyWithImpl<_$NodesConfigImpl>(this, _$identity);
  232. @override
  233. Map<String, dynamic> toJson() {
  234. return _$$NodesConfigImplToJson(this);
  235. }
  236. }
  237. abstract class _NodesConfig implements NodesConfig {
  238. const factory _NodesConfig({
  239. final List<dynamic>? nodes,
  240. final String? tunnelConfig,
  241. final dynamic dataConfig,
  242. final int? socketPort,
  243. final int? maxTryCount,
  244. }) = _$NodesConfigImpl;
  245. factory _NodesConfig.fromJson(Map<String, dynamic> json) =
  246. _$NodesConfigImpl.fromJson;
  247. @override
  248. List<dynamic>? get nodes;
  249. @override
  250. String? get tunnelConfig;
  251. @override
  252. dynamic get dataConfig;
  253. @override
  254. int? get socketPort;
  255. @override
  256. int? get maxTryCount;
  257. /// Create a copy of NodesConfig
  258. /// with the given fields replaced by the non-null parameter values.
  259. @override
  260. @JsonKey(includeFromJson: false, includeToJson: false)
  261. _$$NodesConfigImplCopyWith<_$NodesConfigImpl> get copyWith =>
  262. throw _privateConstructorUsedError;
  263. }