private static ZoneEndpoint zoneEndpoint(Inspector settingsObject) {
        if ( ! settingsObject.valid()) return ZoneEndpoint.defaultEndpoint;
        return new ZoneEndpoint(settingsObject.field(publicField).asBool(),
                                settingsObject.field(privateField).asBool(),
                                SlimeUtils.entriesStream(settingsObject.field(authMethodsField))
                                        .map(field -> AuthMethod.valueOf(field.asString()))
                                        .toList(),
                                SlimeUtils.entriesStream(settingsObject.field(allowedUrnsField))
                                        .map(urnObject -> new AllowedUrn(
                                                switch (urnObject.field(accessTypeField).asString()) {
                                                    case "awsPrivateLink" -> AccessType.awsPrivateLink;
                                                    case "gcpServiceConnect" -> AccessType.gcpServiceConnect;
                                                    default -> throw new IllegalArgumentException("unknown service access type in '" + urnObject + "'");
                                                },
                                                urnObject.field(urnField).asString()))
                                        .toList());
    }
Serializer for load balancers.

@author mpolden
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/LoadBalancerSerializer.java