NetworkSettings.fromJson constructor
- Json? json
Parses network settings from a JSON map.
Implementation
NetworkSettings.fromJson(Json? json) :
subsystemsSocket = json?.getSocket("subsystemsSocket") ?? SocketInfo.raw("192.168.1.20", 8001),
videoSocket = json?.getSocket("videoSocket") ?? SocketInfo.raw("192.168.1.30", 8002),
autonomySocket = json?.getSocket("autonomySocket") ?? SocketInfo.raw("192.168.1.30", 8003),
tankSocket = json?.getSocket("tankSocket") ?? SocketInfo.raw("192.168.1.40", 8000),
connectionTimeout = json?["connectionTimeout"] ?? 5;