toJsonObject

abstract fun toJsonObject(): JsonObject

Serializes this instance to a structured JsonObject.