getSocket method
- String key
Parses a SocketInfo that may not be present.
Implementation
SocketInfo? getSocket(String key) {
final Json? socket = this[key];
if (socket == null) return null;
return SocketInfo.fromJson(socket);
}
Parses a SocketInfo that may not be present.
SocketInfo? getSocket(String key) {
final Json? socket = this[key];
if (socket == null) return null;
return SocketInfo.fromJson(socket);
}