Map<String, dynamic> toJson() => { "id": id, "message": message, "senderId": senderId, "senderName": senderName, "timestamp": timestamp.toIso8601String(), "topic": topic, };