code: static DataSetDto toDataSetDto(final IDataSet dataSet) {
          List<List<Object>> table = new ArrayList<>(dataSet.rowCount());
          
          for (IDsRow r : dataSet) {
              List<Object> row = new ArrayList<>(r.cellCount());
              
              for (IDsCell c : r) {
                  row.add(c.getValue().get());
              }
              
              table.add(row);
          }
          
          DataSetDto dto = new DataSetDto();
          
          dto.table = table;
          
          dto.dataModelId = dataSet.getDataModelId().toString();
          dto.name = dataSet.getName();
          
          return dto;
      }
docs: Converts {@link IDataSet} to {@link DataSetDto}.