toUsageReportExecutionErrorCode method
Implementation
UsageReportExecutionErrorCode toUsageReportExecutionErrorCode() {
switch (this) {
case 'RESOURCE_NOT_FOUND':
return UsageReportExecutionErrorCode.resourceNotFound;
case 'ACCESS_DENIED':
return UsageReportExecutionErrorCode.accessDenied;
case 'INTERNAL_SERVICE_ERROR':
return UsageReportExecutionErrorCode.internalServiceError;
}
throw Exception('$this is not known in enum UsageReportExecutionErrorCode');
}