toEventPublisher method

EventPublisher toEventPublisher()

Implementation

EventPublisher toEventPublisher() {
  switch (this) {
    case 'AnomalyDetection':
      return EventPublisher.anomalyDetection;
  }
  throw Exception('$this is not known in enum EventPublisher');
}