toConnectionStatus method
Implementation
ConnectionStatus toConnectionStatus() {
switch (this) {
case 'Connected':
return ConnectionStatus.connected;
case 'NotConnected':
return ConnectionStatus.notConnected;
}
throw Exception('$this is not known in enum ConnectionStatus');
}