toJson method

Map<String, dynamic> toJson()

Returns a map of the class.

Implementation

Map<String, dynamic> toJson() {
  return {'1h': lastHour, '3h': lastThreeHours};
}