Matthias Nott
2026-03-24 96c8bb5db1a2e0ced999a366e3cf28f9895ec39f
lib/models/server_config.dart
....@@ -2,6 +2,7 @@
22 final String host;
33 final int port;
44 final String? localHost;
5
+ final String? vpnHost;
56 final String? macAddress;
67 final String? mqttToken;
78
....@@ -9,6 +10,7 @@
910 required this.host,
1011 this.port = 8765,
1112 this.localHost,
13
+ this.vpnHost,
1214 this.macAddress,
1315 this.mqttToken,
1416 });
....@@ -18,6 +20,7 @@
1820 'host': host,
1921 'port': port,
2022 if (localHost != null) 'localHost': localHost,
23
+ if (vpnHost != null) 'vpnHost': vpnHost,
2124 if (macAddress != null) 'macAddress': macAddress,
2225 if (mqttToken != null) 'mqttToken': mqttToken,
2326 };
....@@ -28,6 +31,7 @@
2831 host: json['host'] as String? ?? '',
2932 port: json['port'] as int? ?? 8765,
3033 localHost: json['localHost'] as String?,
34
+ vpnHost: json['vpnHost'] as String?,
3135 macAddress: json['macAddress'] as String?,
3236 mqttToken: json['mqttToken'] as String?,
3337 );
....@@ -37,6 +41,7 @@
3741 String? host,
3842 int? port,
3943 String? localHost,
44
+ String? vpnHost,
4045 String? macAddress,
4146 String? mqttToken,
4247 }) {
....@@ -44,6 +49,7 @@
4449 host: host ?? this.host,
4550 port: port ?? this.port,
4651 localHost: localHost ?? this.localHost,
52
+ vpnHost: vpnHost ?? this.vpnHost,
4753 macAddress: macAddress ?? this.macAddress,
4854 mqttToken: mqttToken ?? this.mqttToken,
4955 );