toScheduleStatus method
Implementation
ScheduleStatus toScheduleStatus() {
switch (this) {
case 'Pending':
return ScheduleStatus.pending;
case 'Failed':
return ScheduleStatus.failed;
case 'Scheduled':
return ScheduleStatus.scheduled;
case 'Stopped':
return ScheduleStatus.stopped;
}
throw Exception('$this is not known in enum ScheduleStatus');
}