toJobStatus method
Implementation
JobStatus toJobStatus() {
switch (this) {
case 'SUBMITTED':
return JobStatus.submitted;
case 'PENDING':
return JobStatus.pending;
case 'RUNNABLE':
return JobStatus.runnable;
case 'STARTING':
return JobStatus.starting;
case 'RUNNING':
return JobStatus.running;
case 'SUCCEEDED':
return JobStatus.succeeded;
case 'FAILED':
return JobStatus.failed;
}
throw Exception('$this is not known in enum JobStatus');
}