T
- The class that extends ModelObject to be serialized.public static interface ModelObject.Serializer<T extends ModelObject>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(org.json.JSONObject jsonObject)
Deserialize a
JSONObject to a ModelObject . |
org.json.JSONObject |
serialize(T modelObject)
Serialize the
ModelObject to a JSONObject . |
org.json.JSONObject serialize(T modelObject)
ModelObject
to a JSONObject
.modelObject
- The Model class to be serialized.T deserialize(org.json.JSONObject jsonObject)
JSONObject
to a ModelObject
.jsonObject
- The base object to deserialize.