Serializer

interface Serializer<T : ModelObject>

Interface that must be implemented and provided as a public SERIALIZER field that serializes the to and from a JSONObject.

Parameters

The class that extends ModelObject to be serialized.

Functions

Link copied to clipboard
abstract fun deserialize(jsonObject: JSONObject): T

Deserialize a JSONObject to a ModelObject.

Link copied to clipboard
abstract fun serialize(modelObject: T): JSONObject

Serialize the ModelObject to a JSONObject.