Map<String, dynamic> toMap() { return { 'events': events, 'payload': payload, 'channels': channels, 'timestamp': timestamp, }; }