toValue method
Implementation
String toValue() {
switch (this) {
case JobStatus.active:
return 'Active';
case JobStatus.cancelled:
return 'Cancelled';
case JobStatus.cancelling:
return 'Cancelling';
case JobStatus.complete:
return 'Complete';
case JobStatus.completing:
return 'Completing';
case JobStatus.failed:
return 'Failed';
case JobStatus.failing:
return 'Failing';
case JobStatus.$new:
return 'New';
case JobStatus.paused:
return 'Paused';
case JobStatus.pausing:
return 'Pausing';
case JobStatus.preparing:
return 'Preparing';
case JobStatus.ready:
return 'Ready';
case JobStatus.suspended:
return 'Suspended';
}
}