jsonrpc2
library
Enums
paramsTypes
Identifiers for the types of params, that determine how they need
to be handled
Functions
encodeResponse (dynamic response )
→ String
Encode the result into JSON.
jsonRpc (String request , Dispatcher dispatcher )
→ Future <String >
Accept a JSON-RPC String request and return a String
jsonRpcDispatch (Map <String , dynamic > request , Dispatcher dispatcher )
→ dynamic
Invoke a method
Given a parsed JSON-RPC request and an initialized Dispatcher,
return a Future with a Map of the result of the instance's method or a
Notification object
jsonRpcExec (Object request , Dispatcher dispatcher )
→ Future
Execute the request.
makeExceptionMap (Object anException , String version , [dynamic id ])
→ Map
Instead of crashing the server, we send the exception back to the client.
parseJson (String aString )
→ dynamic
Parse the JSON string