fromMap static method
override
Construct from Map.
Implementation
static ConnectionState? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'connectionStateConnectingToProxy':
return ConnectionStateConnectingToProxy.fromMap(_map);
case 'connectionStateUpdating':
return ConnectionStateUpdating.fromMap(_map);
case 'connectionStateReady':
return ConnectionStateReady.fromMap(_map);
case 'connectionStateWaitingForNetwork':
return ConnectionStateWaitingForNetwork.fromMap(_map);
case 'connectionStateConnecting':
return ConnectionStateConnecting.fromMap(_map);
case null:
default:
return null;
}
}