toJobStatus method
Implementation
JobStatus toJobStatus() {
switch (this) {
case 'IN_PROGRESS':
return JobStatus.inProgress;
case 'SUCCEEDED':
return JobStatus.succeeded;
case 'FAILED':
return JobStatus.failed;
case 'PARTIAL_SUCCESS':
return JobStatus.partialSuccess;
}
throw Exception('$this is not known in enum JobStatus');
}