toNotificationType method

NotificationType toNotificationType()

Implementation

NotificationType toNotificationType() {
  switch (this) {
    case 'Bounce':
      return NotificationType.bounce;
    case 'Complaint':
      return NotificationType.complaint;
    case 'Delivery':
      return NotificationType.delivery;
  }
  throw Exception('$this is not known in enum NotificationType');
}