QueryLegacyViewResponse.deserialize constructor

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

Implementation

factory QueryLegacyViewResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryLegacyViewResponse(
    data: decode.getString<String?>(1),
    events:
        decode.getListOfBytes(2).map((b) => VMEvent.deserialize(b)).toList(),
    gasUsed: decode.getBigInt<BigInt?>(3),
  );
}