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 'renderingFailure':
return EventType.renderingFailure;
}
throw Exception('$this is not known in enum EventType');
}