toJson method
Converts a EventSeries instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempCount = count;
final tempLastObservedTime = lastObservedTime;
jsonData['count'] = tempCount;
jsonData['lastObservedTime'] = tempLastObservedTime;
return jsonData;
}