setJsonRPCRequest method
Implementation
String setJsonRPCRequest(
String method,
Object params, {
int id = 1,
}) {
return json.encode(
{
'jsonrpc': '2.0',
'method': method,
'params': params,
'id': id,
},
);
}