toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EventType.viewerRequest:
      return 'viewer-request';
    case EventType.viewerResponse:
      return 'viewer-response';
    case EventType.originRequest:
      return 'origin-request';
    case EventType.originResponse:
      return 'origin-response';
  }
}