toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DayOfWeek.monday:
      return 'MONDAY';
    case DayOfWeek.tuesday:
      return 'TUESDAY';
    case DayOfWeek.wednesday:
      return 'WEDNESDAY';
    case DayOfWeek.thursday:
      return 'THURSDAY';
    case DayOfWeek.friday:
      return 'FRIDAY';
    case DayOfWeek.saturday:
      return 'SATURDAY';
    case DayOfWeek.sunday:
      return 'SUNDAY';
  }
}