toJobStatus method
Implementation
JobStatus toJobStatus() {
switch (this) {
case 'CREATED':
return JobStatus.created;
case 'PROCESSING':
return JobStatus.processing;
case 'COMPLETED':
return JobStatus.completed;
case 'FAILED':
return JobStatus.failed;
}
throw Exception('$this is not known in enum JobStatus');
}