toJSON

abstract fun toJSON(): JSONObject

Serializes the object to its JSON representation.