public ProxySelectorData mapToData(ProxySelectorDO proxySelectorDO) {
        return Optional.ofNullable(proxySelectorDO).map(data -> {
            ProxySelectorData proxySelectorData = new ProxySelectorData();
            proxySelectorData.setId(data.getId());
            proxySelectorData.setName(data.getName());
            proxySelectorData.setPluginName(data.getPluginName());
            proxySelectorData.setType(data.getType());
            proxySelectorData.setForwardPort(data.getForwardPort());
            String props = data.getProps();
            Properties properties = GsonUtils.getInstance().fromJson(props, Properties.class);
            proxySelectorData.setProps(properties);
            return proxySelectorData;
        }).orElse(null);
    }
mapToData.

@param proxySelectorDO proxySelectorDO
@return ProxySelectorData
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/DiscoveryTransfer.java