toJobStatus method
Implementation
JobStatus toJobStatus() {
switch (this) {
case 'IN_PROGRESS':
return JobStatus.inProgress;
case 'CANCELED':
return JobStatus.canceled;
case 'COMPLETED':
return JobStatus.completed;
case 'DELETION_IN_PROGRESS':
return JobStatus.deletionInProgress;
}
throw Exception('$this is not known in enum JobStatus');
}