toJson method
Implementation
String toJson() {
switch (this) {
case StatisticsInterval.hour:
return 'hour';
case StatisticsInterval.day:
return 'day';
}
}
String toJson() {
switch (this) {
case StatisticsInterval.hour:
return 'hour';
case StatisticsInterval.day:
return 'day';
}
}