toJson method
Implementation
Map<String, dynamic> toJson() => {
'totalEvents': totalEvents,
'eventsToday': eventsToday,
'eventsByType': eventsByType.map((k, v) => MapEntry(k.toString(), v)),
'avgEventsPerSecond': avgEventsPerSecond,
'queueLength': queueLength,
'memoryUsage': memoryUsage,
'totalFileSize': totalFileSize,
};