toWorldExportJobErrorCode method
Implementation
WorldExportJobErrorCode toWorldExportJobErrorCode() {
switch (this) {
case 'InternalServiceError':
return WorldExportJobErrorCode.internalServiceError;
case 'LimitExceeded':
return WorldExportJobErrorCode.limitExceeded;
case 'ResourceNotFound':
return WorldExportJobErrorCode.resourceNotFound;
case 'RequestThrottled':
return WorldExportJobErrorCode.requestThrottled;
case 'InvalidInput':
return WorldExportJobErrorCode.invalidInput;
case 'AccessDenied':
return WorldExportJobErrorCode.accessDenied;
}
throw Exception('$this is not known in enum WorldExportJobErrorCode');
}