class JcrNs implements JsonObjectConvertible, Comparable<JcrNs> {

    public static @Nullable JcrNs fromJson(final @NotNull JsonObject json) {
        if (!json.containsKey(KEYS.prefix()) || !json.containsKey(KEYS.uri())) {
            return null;
        }
        JcrNs jcrNs = new JcrNs();
        jcrNs.setPrefix(json.getString(KEYS.prefix(), ""));
        jcrNs.setUri(json.getString(KEYS.uri(), ""));
        return jcrNs;
    }

}