return result;
}
public static SavedQuery parseSavedQuery(JSONObject object)
throws JSONException {
final SavedQuery result = SavedQueryFactory.create(JsonInput.getIntOrNull(object, "id"));
result.setName(JsonInput.getStringOrNull(object, "name"));
result.setPublicQuery(JsonInput.getOptionalBool(object, "is_public"));
result.setProjectId(JsonInput.getIntOrNull(object, "project_id"));
return result;
}