toConnectionStatus method

ConnectionStatus toConnectionStatus()

Implementation

ConnectionStatus toConnectionStatus() {
  switch (this) {
    case 'CONNECTED':
      return ConnectionStatus.connected;
    case 'DISCONNECTED':
      return ConnectionStatus.disconnected;
  }
  throw Exception('$this is not known in enum ConnectionStatus');
}