Map<String, Object?> toPublicMap() { return { 'windowStartedAt': windowStartedAt.toIso8601String(), 'eventCount': eventCount, }; }