QueryOpenInterestResponse.deserialize constructor

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

Implementation

factory QueryOpenInterestResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryOpenInterestResponse(
    amount: decode.messageTo<OpenInterest?>(
      1,
      (b) => OpenInterest.deserialize(b),
    ),
  );
}