StatusResponse.deserialize constructor

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

Implementation

factory StatusResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return StatusResponse(
    earliestStoreHeight: decode.getBigInt<BigInt?>(1),
    height: decode.getBigInt<BigInt?>(2),
    timestamp: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
      3,
      (b) => google_protobuf_timestamp.Timestamp.deserialize(b),
    ),
    appHash: decode.getBytes<List<int>?>(4),
    validatorHash: decode.getBytes<List<int>?>(5),
  );
}