QueryDenomsMetadataResponse.deserialize constructor

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

Implementation

factory QueryDenomsMetadataResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtocolBuffer.decode(bytes);
  return QueryDenomsMetadataResponse(
      metadatas: decode
          .getFields<List<int>>(1)
          .map((e) => Metadata.deserialize(e))
          .toList(),
      pagination: decode
          .getResult(2)
          ?.to<PageResponse, List<int>>((e) => PageResponse.deserialize(e)));
}