Converts the request details to WebSocket parameters.
Map<String, dynamic> toWebsocketParams() { return {"command": method, "id": id, ...params}; }