Returns a map of the class.
Map<String, dynamic> toJson() { return {'1h': lastHour, '3h': lastThreeHours}; }