toJson method
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;
}
}
Converts a WeekType
to JSON.
static dynamic toJson(WeekType input) {
switch (input) {
case WeekType.A:
return 0;
break;
case WeekType.B:
return 1;
break;
}
}