to Payload

open fun toPayload(): JSONObject

Method to use the class as json payload

Return

the data of the class formatted as JSONObject