toJson method

Map<String, dynamic> toJson()

Returns a Map with the object data

Implementation

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