toJSON

open override fun toJSON(): JSONObject

Serializes the object to its JSON representation.