RpcPayload<T>.from constructor

RpcPayload<T>.from({
  1. required T params,
})

Implementation

factory RpcPayload.from({
  required T params,
}) =>
    RpcPayload(
      id: Random().nextInt(999999999),
      jsonrpc: '2.0',
      method: 'call',
      params: params,
    );