toConnectorStatus method

ConnectorStatus toConnectorStatus()

Implementation

ConnectorStatus toConnectorStatus() {
  switch (this) {
    case 'HEALTHY':
      return ConnectorStatus.healthy;
    case 'UNHEALTHY':
      return ConnectorStatus.unhealthy;
  }
  throw Exception('$this is not known in enum ConnectorStatus');
}