toServiceActionAssociationErrorCode method
Implementation
ServiceActionAssociationErrorCode toServiceActionAssociationErrorCode() {
switch (this) {
case 'DUPLICATE_RESOURCE':
return ServiceActionAssociationErrorCode.duplicateResource;
case 'INTERNAL_FAILURE':
return ServiceActionAssociationErrorCode.internalFailure;
case 'LIMIT_EXCEEDED':
return ServiceActionAssociationErrorCode.limitExceeded;
case 'RESOURCE_NOT_FOUND':
return ServiceActionAssociationErrorCode.resourceNotFound;
case 'THROTTLING':
return ServiceActionAssociationErrorCode.throttling;
}
throw Exception(
'$this is not known in enum ServiceActionAssociationErrorCode');
}