Map<String, Object?> toJson() { final data = <String, Object?>{}; data['algorithm'] = algorithm; data['room_id'] = roomId; data['session_id'] = sessionId; data['sender_key'] = senderKey; return data; }