toJobStatus method
Implementation
JobStatus toJobStatus() {
switch (this) {
case 'Queued':
return JobStatus.queued;
case 'InProgress':
return JobStatus.inProgress;
case 'Complete':
return JobStatus.complete;
case 'Failed':
return JobStatus.failed;
}
throw Exception('$this is not known in enum JobStatus');
}