toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CalendarState.open:
      return 'OPEN';
    case CalendarState.closed:
      return 'CLOSED';
  }
}