toValue method
Implementation
String toValue() {
switch (this) {
case ScheduleStatus.pending:
return 'Pending';
case ScheduleStatus.failed:
return 'Failed';
case ScheduleStatus.scheduled:
return 'Scheduled';
case ScheduleStatus.stopped:
return 'Stopped';
}
}