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