toValue method
Implementation
String toValue() {
switch (this) {
case JobState.completed:
return 'Completed';
case JobState.pending:
return 'Pending';
case JobState.failed:
return 'Failed';
case JobState.deleting:
return 'Deleting';
}
}