public static DataStorageOptions fromConfig(final DataStorageConfiguration domainObject) {
    final DataStorageOptions dataStorageOptions = DataStorageOptions.create();
    dataStorageOptions.dataStorageFormat = domainObject.getDataStorageFormat();
    dataStorageOptions.receiptCompactionEnabled = domainObject.getReceiptCompactionEnabled();
    dataStorageOptions.pathBasedExtraStorageOptions =
        PathBasedExtraStorageOptions.fromConfig(
            domainObject.getPathBasedExtraStorageConfiguration());
    dataStorageOptions.historyExpiryPrune = domainObject.getHistoryExpiryPruneEnabled();
    return dataStorageOptions;
  }
Converts to options from the configuration

@param domainObject to be reversed
@return the options that correspond to the configuration
app/src/main/java/org/hyperledger/besu/cli/options/storage/DataStorageOptions.java