nodes_config.dart 468 B

1234567891011121314151617
  1. import 'package:freezed_annotation/freezed_annotation.dart';
  2. import 'package:flutter/foundation.dart';
  3. part 'nodes_config.freezed.dart';
  4. part 'nodes_config.g.dart';
  5. @freezed
  6. abstract class NodesConfig with _$NodesConfig {
  7. const factory NodesConfig({
  8. List<dynamic>? nodes,
  9. String? tunnelConfig,
  10. int? socketPort,
  11. int? maxTryCount,
  12. }) = _NodesConfig;
  13. factory NodesConfig.fromJson(Map<String, Object?> json) =>
  14. _$NodesConfigFromJson(json);
  15. }