toJson method

dynamic toJson (WeekType input)

Converts a WeekType to JSON.

Implementation

static dynamic toJson(WeekType input) {
  switch (input) {
    case WeekType.A:
      return 0;
      break;

    case WeekType.B:
      return 1;
      break;
  }
}