toConnectionType method

ConnectionType toConnectionType()

Implementation

ConnectionType toConnectionType() {
  switch (this) {
    case 'JDBC':
      return ConnectionType.jdbc;
    case 'SFTP':
      return ConnectionType.sftp;
    case 'MONGODB':
      return ConnectionType.mongodb;
    case 'KAFKA':
      return ConnectionType.kafka;
    case 'NETWORK':
      return ConnectionType.network;
    case 'MARKETPLACE':
      return ConnectionType.marketplace;
    case 'CUSTOM':
      return ConnectionType.custom;
  }
  throw Exception('$this is not known in enum ConnectionType');
}