setJsonRPCRequest method

String setJsonRPCRequest(
  1. String method,
  2. Object params, {
  3. int id = 1,
})
inherited

Implementation

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