toNotificationEvent method
Implementation
NotificationEvent toNotificationEvent() {
switch (this) {
case 'All':
return NotificationEvent.all;
case 'InProgress':
return NotificationEvent.inProgress;
case 'Success':
return NotificationEvent.success;
case 'TimedOut':
return NotificationEvent.timedOut;
case 'Cancelled':
return NotificationEvent.cancelled;
case 'Failed':
return NotificationEvent.failed;
}
throw Exception('$this is not known in enum NotificationEvent');
}