toJson method

String toJson()

Implementation

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