toValue method
Implementation
String toValue() {
switch (this) {
case JobRunState.starting:
return 'STARTING';
case JobRunState.running:
return 'RUNNING';
case JobRunState.stopping:
return 'STOPPING';
case JobRunState.stopped:
return 'STOPPED';
case JobRunState.succeeded:
return 'SUCCEEDED';
case JobRunState.failed:
return 'FAILED';
case JobRunState.timeout:
return 'TIMEOUT';
}
}