toConnectionStatus method

ConnectionStatus toConnectionStatus()

Implementation

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