response method

List<JsonRpcResponse<T>> response(
  1. List<Map<String, dynamic>> json
)

Parses the json RPC response and returns the batch result.

Implementation

List<JsonRpcResponse<T>> response(
  final List<Map<String, dynamic>> json,
) {
  assert(json.length == _methods.length);
  return [
    for (int i = 0; i < json.length; ++i) _methods[i].response(json[i])
  ];
}