toValue method
Implementation
String toValue() {
switch (this) {
case JobStatus.submitted:
return 'SUBMITTED';
case JobStatus.pending:
return 'PENDING';
case JobStatus.runnable:
return 'RUNNABLE';
case JobStatus.starting:
return 'STARTING';
case JobStatus.running:
return 'RUNNING';
case JobStatus.succeeded:
return 'SUCCEEDED';
case JobStatus.failed:
return 'FAILED';
}
}