NodeMode.dart 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import 'package:dart_json_mapper/dart_json_mapper.dart';
  2. @jsonSerializable
  3. class NodeMode {
  4. final int id;
  5. final String name;
  6. final String host;
  7. final String group;
  8. final String type;
  9. final int port;
  10. final String? passwd;
  11. final String? sni;
  12. final int udp;
  13. final String? ip;
  14. @JsonProperty(name: 'online_users')
  15. final int onlineUsers;
  16. @JsonProperty(name: 'country_code')
  17. final String countryCode;
  18. @JsonProperty(name: 'uuid')
  19. final String? uuid;
  20. final String? method;
  21. @JsonProperty(name: 'v2_alter_id')
  22. final int? v2AlterId;
  23. @JsonProperty(name: 'v2_net')
  24. final String? v2Net;
  25. @JsonProperty(name: 'v2_type')
  26. final String? v2Type;
  27. @JsonProperty(name: 'v2_host')
  28. final String? v2Host;
  29. @JsonProperty(name: 'v2_path')
  30. final String? v2Path;
  31. @JsonProperty(name: 'v2_tls')
  32. final String? v2Tls;
  33. @JsonProperty(name: 'v2_sni')
  34. final String? v2Sni;
  35. final int? vless;
  36. @JsonProperty(name: 'vless_pulkey')
  37. final String? vlessPulkey;
  38. NodeMode({
  39. required this.id,
  40. required this.name,
  41. required this.host,
  42. required this.group,
  43. required this.type,
  44. required this.port,
  45. this.passwd,
  46. this.sni,
  47. required this.udp,
  48. this.ip,
  49. required this.onlineUsers,
  50. required this.countryCode,
  51. this.uuid,
  52. this.method,
  53. this.v2AlterId,
  54. this.v2Net,
  55. this.v2Type,
  56. this.v2Host,
  57. this.v2Path,
  58. this.v2Tls,
  59. this.v2Sni,
  60. this.vless,
  61. this.vlessPulkey,
  62. });
  63. }