NodeMode.dart 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. class nodeMode {
  2. int? id;
  3. String? name;
  4. String? host;
  5. String? group;
  6. String? type;
  7. int? port;
  8. String? uuid;
  9. String? method;
  10. int? v2AlterId;
  11. String? v2Net;
  12. String? v2Type;
  13. String? v2Host;
  14. String? v2Path;
  15. String? v2Tls;
  16. String? v2Sni;
  17. int? udp;
  18. int? vless;
  19. String? vlessPulkey;
  20. String? ip;
  21. int? onlineUsers;
  22. String? countryCode;
  23. nodeMode(
  24. {this.id,
  25. this.name,
  26. this.host,
  27. this.group,
  28. this.type,
  29. this.port,
  30. this.uuid,
  31. this.method,
  32. this.v2AlterId,
  33. this.v2Net,
  34. this.v2Type,
  35. this.v2Host,
  36. this.v2Path,
  37. this.v2Tls,
  38. this.v2Sni,
  39. this.udp,
  40. this.vless,
  41. this.vlessPulkey,
  42. this.ip,
  43. this.onlineUsers,
  44. this.countryCode,
  45. });
  46. nodeMode.fromJson(Map<String, dynamic> json) {
  47. id = json['id'];
  48. name = json['name'];
  49. host = json['host'];
  50. group = json['group'];
  51. type = json['type'];
  52. port = json['port'];
  53. uuid = json['uuid'];
  54. method = json['method'];
  55. v2AlterId = json['v2_alter_id'];
  56. v2Net = json['v2_net'];
  57. v2Type = json['v2_type'];
  58. v2Host = json['v2_host'];
  59. v2Path = json['v2_path'];
  60. v2Tls = json['v2_tls'];
  61. v2Sni = json['v2_sni'];
  62. udp = json['udp'];
  63. vless = json['vless'];
  64. vlessPulkey = json['vless_pulkey'];
  65. ip = json['ip'];
  66. onlineUsers = json['online_users'];
  67. countryCode = json['country_code'];
  68. }
  69. Map<String, dynamic> toJson() {
  70. final Map<String, dynamic> data = new Map<String, dynamic>();
  71. data['id'] = this.id;
  72. data['name'] = this.name;
  73. data['host'] = this.host;
  74. data['group'] = this.group;
  75. data['type'] = this.type;
  76. data['port'] = this.port;
  77. data['uuid'] = this.uuid;
  78. data['method'] = this.method;
  79. data['v2_alter_id'] = this.v2AlterId;
  80. data['v2_net'] = this.v2Net;
  81. data['v2_type'] = this.v2Type;
  82. data['v2_host'] = this.v2Host;
  83. data['v2_path'] = this.v2Path;
  84. data['v2_tls'] = this.v2Tls;
  85. data['v2_sni'] = this.v2Sni;
  86. data['udp'] = this.udp;
  87. data['vless'] = this.vless;
  88. data['vless_pulkey'] = this.vlessPulkey;
  89. data['ip'] = this.ip;
  90. data['online_users'] = this.onlineUsers;
  91. data['country_code'] = this.countryCode;
  92. return data;
  93. }
  94. }