code: static IDataModel toDataModel(final IDataSet dataSet) {
          DataModel dataModel = new DataModel(dataSet.getName());
          
          for (IDsRow dsRow : dataSet) {
              DmRow dmRow = new DmRow(dsRow.index());
              
              for (IDsCell dsCell : dsRow) {
                  DmCell dmCell = new DmCell();
                  dmCell.setValue(Optional.of(dsCell.getValue()));
                  dmCell.setAddress(new CellAddress(dataModel.getDataModelId(), A1Address.fromRowColumn(dsRow.index(), dsCell.index())));
                  dmCell.setContent(dsCell.getValue());
                  dmRow.setCell(dsCell.index(), dmCell);
              }
              dataModel.setRow(dsRow.index(), dmRow);
          }
          
          return dataModel;
      }
docs: Converts {@link IDataSet} to the new {@link IDataModel}.