public PluginData mapToData(final NamespacePluginVO namespacePluginVO) {
        return Optional.ofNullable(namespacePluginVO)
                .map(element -> PluginData.builder()
                        .id(element.getPluginId())
                        .name(element.getName())
                        .config(element.getConfig())
                        .role(element.getRole())
                        .enabled(element.getEnabled())
                        .sort(element.getSort())
                        .pluginJar(Optional.ofNullable(element.getPluginJar()).map(Base64Utils::encodeToString).orElse(""))
                        .namespaceId(element.getNamespaceId())
                        .build())
                .orElse(null);
    }
Map to data plugin data.

@param namespacePluginVO the namespacePlugin vo
@return the plugin data
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/PluginTransfer.java