QueryBalancesResponse.deserialize constructor

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

Implementation

factory QueryBalancesResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryBalancesResponse(
    locked:
        decode
            .getListOfBytes(1)
            .map((b) => cosmos_base_v1beta1_coin.Coin.deserialize(b))
            .toList(),
    unvested:
        decode
            .getListOfBytes(2)
            .map((b) => cosmos_base_v1beta1_coin.Coin.deserialize(b))
            .toList(),
    vested:
        decode
            .getListOfBytes(3)
            .map((b) => cosmos_base_v1beta1_coin.Coin.deserialize(b))
            .toList(),
  );
}