toReasonCode method
Implementation
ReasonCode toReasonCode() {
switch (this) {
case 'AWS_SERVICE_ACCESS_DISABLED':
return ReasonCode.awsServiceAccessDisabled;
case 'DELEGATED_ADMINISTRATOR_DEREGISTERED':
return ReasonCode.delegatedAdministratorDeregistered;
case 'ORGANIZATION_DELETED':
return ReasonCode.organizationDeleted;
case 'SERVICE_LINKED_ROLE_CREATION_FAILED':
return ReasonCode.serviceLinkedRoleCreationFailed;
}
throw Exception('$this is not known in enum ReasonCode');
}