open fun toJSON(json: JsonBuilder): Unit
Build a JSON representation of the model properties
json
- A builder that should be filled with the model properties
open fun toJSON(): JsonObject
Build a JSON representation of the model directly to JsonObject