toJobState method
Implementation
JobState toJobState() {
switch (this) {
case 'Completed':
return JobState.completed;
case 'Pending':
return JobState.pending;
case 'Failed':
return JobState.failed;
case 'Deleting':
return JobState.deleting;
}
throw Exception('$this is not known in enum JobState');
}