public static ArchiveUris fromJson(byte[] data) {
        Inspector inspector = SlimeUtils.jsonToSlime(data).get();

        Map<TenantName, String> tenantArchiveUris = new HashMap<>();
        inspector.field("tenant").traverse((ObjectTraverser) (key, value) -> tenantArchiveUris.put(TenantName.from(key), value.asString()));

        Map<CloudAccount, String> accountArchiveUris = new HashMap<>();
        inspector.field("account").traverse((ObjectTraverser) (key, value) -> accountArchiveUris.put(CloudAccount.from(key), value.asString()));

        return new ArchiveUris(tenantArchiveUris, accountArchiveUris);
    }
Serializer for archive URIs that are set per tenant and per account.

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