I am sending out ParseObject through push notification so that I may store them locally on the users device. How can make a ParseObject from the JsonObject which is coming through the notifications?
Asked
Active
Viewed 132 times
1
-
https://github.com/parse-community/Parse-SDK-Android/issues/84 – Kirguduck Mar 08 '20 at 14:25
-
Thankyou but the answer is to use ParseObject.fromJSON() method – Tanzim Chowdhury Mar 08 '20 at 14:45
1 Answers
-1
The Best way to do it is to use the ParseObject.fromJSON() method.
It takes three parameters : JsonObject , DefaultClassName , ParseDecoder
An example code would be :
ParseDecoder decoder = ParseDecoder.get();
ParseObject obj = ParseObject.fromJSON(MyJsonObject,"object_class_name", decoder);

Tanzim Chowdhury
- 3,020
- 2
- 9
- 21