GetBlockWithTxsRequest.deserialize constructor

GetBlockWithTxsRequest.deserialize(
  1. List<int> bytes
)

Implementation

factory GetBlockWithTxsRequest.deserialize(List<int> bytes) {
  final decode = CosmosProtocolBuffer.decode(bytes);
  return GetBlockWithTxsRequest(
      height: decode.getField(1),
      pagination: decode
          .getResult(2)
          ?.to<PageRequest, List<int>>((e) => PageRequest.deserialize(e)));
}