toConnectionStatus method

ConnectionStatus toConnectionStatus()

Implementation

ConnectionStatus toConnectionStatus() {
  switch (this) {
    case 'PENDING':
      return ConnectionStatus.pending;
    case 'AVAILABLE':
      return ConnectionStatus.available;
    case 'ERROR':
      return ConnectionStatus.error;
  }
  throw Exception('$this is not known in enum ConnectionStatus');
}