getSocket method

SocketInfo? getSocket(
  1. 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);
}