toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EventType.send:
      return 'SEND';
    case EventType.reject:
      return 'REJECT';
    case EventType.bounce:
      return 'BOUNCE';
    case EventType.complaint:
      return 'COMPLAINT';
    case EventType.delivery:
      return 'DELIVERY';
    case EventType.open:
      return 'OPEN';
    case EventType.click:
      return 'CLICK';
    case EventType.renderingFailure:
      return 'RENDERING_FAILURE';
    case EventType.deliveryDelay:
      return 'DELIVERY_DELAY';
    case EventType.subscription:
      return 'SUBSCRIPTION';
  }
}