nodes_config.dart 492 B

123456789101112131415161718
  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. dynamic dataConfig,
  11. int? socketPort,
  12. int? maxTryCount,
  13. }) = _NodesConfig;
  14. factory NodesConfig.fromJson(Map<String, Object?> json) =>
  15. _$NodesConfigFromJson(json);
  16. }