toValue method
Implementation
String toValue() {
switch (this) {
case JobStatus.submitted:
return 'SUBMITTED';
case JobStatus.inProgress:
return 'IN_PROGRESS';
case JobStatus.completed:
return 'COMPLETED';
case JobStatus.partialSuccess:
return 'PARTIAL_SUCCESS';
case JobStatus.failed:
return 'FAILED';
case JobStatus.stopRequested:
return 'STOP_REQUESTED';
case JobStatus.stopped:
return 'STOPPED';
}
}