A class representing a JSON-RPC 2.0 request object.
id
Unique id of the request
method
Name of the method
params
List of parameters
new()
Initialize a JSON-RPC request
JsonRpcRequest$new(method = NULL, params = NULL, id = NULL)
method
Name of the method
params
List of parameters
id
Unique id of the request
dehydrate()
Dehydrate the request to a list
JsonRpcRequest$dehydrate()
serialize()
Serialize the request to JSON
JsonRpcRequest$serialize()
clone()
The objects of this class are cloneable with this method.
JsonRpcRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.