formatJsonRpcResponse<T> static method

Map<String, dynamic> formatJsonRpcResponse<T>(
  1. int id,
  2. T result
)

Implementation

static Map<String, dynamic> formatJsonRpcResponse<T>(
  int id,
  T result,
) {
  return {
    'id': id,
    'jsonrpc': '2.0',
    'result': result,
  };
}