toAssessmentRunNotificationSnsStatusCode method
Implementation
AssessmentRunNotificationSnsStatusCode
toAssessmentRunNotificationSnsStatusCode() {
switch (this) {
case 'SUCCESS':
return AssessmentRunNotificationSnsStatusCode.success;
case 'TOPIC_DOES_NOT_EXIST':
return AssessmentRunNotificationSnsStatusCode.topicDoesNotExist;
case 'ACCESS_DENIED':
return AssessmentRunNotificationSnsStatusCode.accessDenied;
case 'INTERNAL_ERROR':
return AssessmentRunNotificationSnsStatusCode.internalError;
}
throw Exception(
'$this is not known in enum AssessmentRunNotificationSnsStatusCode');
}