public DiscoveryUpstreamDO mapToDo(DiscoveryUpstreamData discoveryUpstreamData) {
        return Optional.ofNullable(discoveryUpstreamData).map(data -> DiscoveryUpstreamDO.builder()
            .discoveryHandlerId(data.getDiscoveryHandlerId())
            .id(data.getId())
            .namespaceId(data.getNamespaceId())
            .protocol(data.getProtocol())
            .status(data.getStatus())
            .weight(data.getWeight())
            .props(data.getProps())
            .url(data.getUrl())
            .dateUpdated(data.getDateUpdated())
            .dateCreated(data.getDateCreated()).build()).orElse(null);
    }
mapToDo.

@param discoveryUpstreamData discoveryUpstreamData
@return DiscoveryUpstreamDO
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/DiscoveryTransfer.java