deserializeOpt

Parse a JSONObject to a class that extends ModelObject using its ModelObject.Serializer. Result can also be null if the object is null.

Return

The parsed object from JSON, null if doesn't exist.

Parameters

jsonObject

The object to be parsed.

serializer

The serializer of the ModelObject class to be used.

The type o the ModelObject class to be parse to.