toConnectionStatus method

ConnectionStatus toConnectionStatus()

Implementation

ConnectionStatus toConnectionStatus() {
  switch (this) {
    case 'ONLINE':
      return ConnectionStatus.online;
    case 'OFFLINE':
      return ConnectionStatus.offline;
  }
  throw Exception('$this is not known in enum ConnectionStatus');
}