toConnectionType method

ConnectionType toConnectionType()

Implementation

ConnectionType toConnectionType() {
  switch (this) {
    case 'WEBSOCKET':
      return ConnectionType.websocket;
    case 'CONNECTION_CREDENTIALS':
      return ConnectionType.connectionCredentials;
  }
  throw Exception('$this is not known in enum ConnectionType');
}