public static OneApiError fromJsonObject()

in data/src/main/java/com/microsoft/azure/kusto/data/exceptions/OneApiError.java [29:37]


    public static OneApiError fromJsonObject(JsonNode jsonObject) {
        return new OneApiError(
                jsonObject.has("code") ? jsonObject.get("code").asText() : "",
                jsonObject.has("message") ? jsonObject.get("message").asText() : "",
                jsonObject.has("@message") ? jsonObject.get("@message").asText() : "",
                jsonObject.has("@type") ? jsonObject.get("@type").asText() : "",
                jsonObject.get("@context"),
                jsonObject.has("@permanent") && jsonObject.get("@permanent").asBoolean());
    }