toJobRunState method
Implementation
JobRunState toJobRunState() {
switch (this) {
case 'STARTING':
return JobRunState.starting;
case 'RUNNING':
return JobRunState.running;
case 'STOPPING':
return JobRunState.stopping;
case 'STOPPED':
return JobRunState.stopped;
case 'SUCCEEDED':
return JobRunState.succeeded;
case 'FAILED':
return JobRunState.failed;
case 'TIMEOUT':
return JobRunState.timeout;
}
throw Exception('$this is not known in enum JobRunState');
}