ObjectCtx

abstract inner class ObjectCtx(map: MutableMap<String, Any?>) : Serializer.ObjectCtx

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun array(name: String, block: Serializer.ArrayCtx.() -> Unit)
Link copied to clipboard
fun build(): Map<String, Any?>
Link copied to clipboard
open fun field(name: String, value: Any?)
open override fun field(name: String, value: Boolean?)
open override fun field(name: String, value: Double?)
open override fun field(name: String, value: Float?)
open override fun field(name: String, value: Int?)
open override fun field(name: String, value: Long?)
open override fun field(name: String, value: String?)
Link copied to clipboard
open fun fieldIfNotNull(name: String, value: Any?)
open fun fieldIfNotNull(name: String, value: Boolean?)
open fun fieldIfNotNull(name: String, value: Double?)
open fun fieldIfNotNull(name: String, value: Float?)
open fun fieldIfNotNull(name: String, value: Long?)
open fun fieldIfNotNull(name: String, value: Number?)
open fun fieldIfNotNull(name: String, value: String?)
Link copied to clipboard
open override fun obj(name: String, block: Serializer.ObjectCtx.() -> Unit)
Link copied to clipboard
abstract fun serialize(): String