toEventType method
Implementation
EventType toEventType() {
switch (this) {
case 'SEND':
return EventType.send;
case 'REJECT':
return EventType.reject;
case 'BOUNCE':
return EventType.bounce;
case 'COMPLAINT':
return EventType.complaint;
case 'DELIVERY':
return EventType.delivery;
case 'OPEN':
return EventType.open;
case 'CLICK':
return EventType.click;
case 'RENDERING_FAILURE':
return EventType.renderingFailure;
case 'DELIVERY_DELAY':
return EventType.deliveryDelay;
case 'SUBSCRIPTION':
return EventType.subscription;
}
throw Exception('$this is not known in enum EventType');
}