JSONRPCResponse Serializer
Parameters
result Serializer
Serializer for the result field.
error Data Serializer
Serializer for the error's data field.
Type Parameters
T
The type of the result value in JSONRPCResponse.Success.
E
The type of the error data in JSONRPCResponse.Error.