code: public static BatchDto transformToDto(BatchMetricQuery batch) {
          BatchDto result = new BatchDto();
          result.status = batch.getStatus().toString();
          result.ttl = batch.getTtl();
          result.createdDate = batch.getCreatedDate();
          result.ownerName = batch.getOwnerName();
  
          List<AsyncBatchedMetricQuery> batchQueries = batch.getQueries();
          result.queries = new ArrayList<>(batchQueries.size());
          for (AsyncBatchedMetricQuery query: batchQueries) {
              result.queries.add(new QueryDto(query.getExpression(), query.getResult(), query.getMessage()));
          }
          return result;
      }
docs: ~ Methods **************************************************************************************************************************************