toValue method
Implementation
String toValue() {
switch (this) {
case JobStatus.created:
return 'Created';
case JobStatus.queued:
return 'Queued';
case JobStatus.dispatched:
return 'Dispatched';
case JobStatus.inProgress:
return 'InProgress';
case JobStatus.timedOut:
return 'TimedOut';
case JobStatus.succeeded:
return 'Succeeded';
case JobStatus.failed:
return 'Failed';
}
}