toJobExecutionStatus method
Implementation
JobExecutionStatus toJobExecutionStatus() {
switch (this) {
case 'QUEUED':
return JobExecutionStatus.queued;
case 'IN_PROGRESS':
return JobExecutionStatus.inProgress;
case 'SUCCEEDED':
return JobExecutionStatus.succeeded;
case 'FAILED':
return JobExecutionStatus.failed;
case 'TIMED_OUT':
return JobExecutionStatus.timedOut;
case 'REJECTED':
return JobExecutionStatus.rejected;
case 'REMOVED':
return JobExecutionStatus.removed;
case 'CANCELED':
return JobExecutionStatus.canceled;
}
throw Exception('$this is not known in enum JobExecutionStatus');
}