QueryViewJSONBatchResponse.deserialize constructor

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

Implementation

factory QueryViewJSONBatchResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryViewJSONBatchResponse(
    responses:
        decode
            .getListOfBytes(1)
            .map((b) => QueryViewJSONResponse.deserialize(b))
            .toList(),
  );
}