toNotificationTarget method
Implementation
NotificationTarget toNotificationTarget() {
switch (this) {
case 'EventBridge':
return NotificationTarget.eventBridge;
case 'SNS':
return NotificationTarget.sns;
case 'SQS':
return NotificationTarget.sqs;
}
throw Exception('$this is not known in enum NotificationTarget');
}