1

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?

Manuel
  • 14,274
  • 6
  • 57
  • 130
Tanzim Chowdhury
  • 3,020
  • 2
  • 9
  • 21

1 Answers1

-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