serialize

abstract fun serialize(modelObject: T): JSONObject

Serialize the ModelObject to a JSONObject.

Return

The result JSONObject

Parameters

modelObject

The Model class to be serialized.