toCalendarState method
Implementation
CalendarState toCalendarState() {
switch (this) {
case 'OPEN':
return CalendarState.open;
case 'CLOSED':
return CalendarState.closed;
}
throw Exception('$this is not known in enum CalendarState');
}