if ((value instanceof ParseQuery.RelationConstraint)) {
return ((ParseQuery.RelationConstraint) value).encode(objectEncoder);
}
if(value instanceof ParseFile) {
ParseFile file = (ParseFile) value;
JSONObject output = new JSONObject();
output.put("__type", "File");
output.put("name", file.getName());
output.put("url", file.getUrl());
return output;
}
if(value instanceof ParseGeoPoint) {
ParseGeoPoint gp = (ParseGeoPoint) value;