class NetworkChannelProvider implements ChannelProvider {

    public static final String CHANNEL = "network";

    private final NetworkManager networkManager;

    private final NetworkConfigService configService;

    @Override
    public String getChannel() {
        return CHANNEL;
    }

    @Override
    public Mono<ChannelInfo> getChannelInfo(String channelId) {
        return configService
            .findById(channelId)
            .flatMap(this::toChannelInfo);
    }

    public Mono<ChannelInfo> toChannelInfo(NetworkConfigEntity entity){<FILL_FUNCTION_BODY>}
}

        ChannelInfo info = new ChannelInfo();
        info.setId(entity.getId());
        info.setDescription(entity.getDescription());
        info.setName(entity.getName());
        return Mono
            .justOrEmpty(networkManager.getProvider(entity.getType()))
            .flatMap(provider -> Flux
                .fromIterable(entity.toNetworkPropertiesList())
                .flatMap(provider::createConfig)
                .as(FluxUtils.safeMap(conf -> {
                    if (conf instanceof ClientNetworkConfig) {
                        //客户端则返回远程地址
                        return ((ClientNetworkConfig) conf).getRemoteAddress();
                    }
                    if (conf instanceof ServerNetworkConfig) {
                        //服务端返回公共访问地址
                        return ((ServerNetworkConfig) conf).getPublicAddress();
                    }
                    return null;
                }))
                .distinct()
                .map(address -> Address.of(address,
                                           //todo 真实状态检查?
                                           entity.getState() == NetworkConfigState.enabled
                                               ? Address.HEALTH_OK
                                               : Address.HEALTH_DISABLED))
                .collectList())
            .doOnNext(info::setAddresses)
            .thenReturn(info);

    
<no_super_class>