toEventType method

EventType toEventType()

Implementation

EventType toEventType() {
  switch (this) {
    case 'viewer-request':
      return EventType.viewerRequest;
    case 'viewer-response':
      return EventType.viewerResponse;
    case 'origin-request':
      return EventType.originRequest;
    case 'origin-response':
      return EventType.originResponse;
  }
  throw Exception('$this is not known in enum EventType');
}