Represents a request in the protocol.
the request method identifier
optional request parameters
Converts the request to a JSON-RPC request.