public static List<ContainerEndpoint> endpointListFromSlime(Inspector inspector) {
        final var endpoints = new ArrayList<ContainerEndpoint>();

        inspector.traverse((ArrayTraverser) (idx, endpointInspector) -> {
            final var containerEndpoint = endpointFromSlime(endpointInspector);
            endpoints.add(containerEndpoint);
        });

        return endpoints;
    }
Contains all methods for de-/serializing ContainerEndpoints to/from JSON.
Also supports de-/serializing lists of these values.

@author ogronnesby
configserver/src/main/java/com/yahoo/vespa/config/server/tenant/ContainerEndpointSerializer.java