toConnectionType method

ConnectionType toConnectionType()

Implementation

ConnectionType toConnectionType() {
  switch (this) {
    case 'CONNECT_SSH':
      return ConnectionType.connectSsh;
    case 'CONNECT_SSM':
      return ConnectionType.connectSsm;
  }
  throw Exception('$this is not known in enum ConnectionType');
}