SubjectObjectBuilder

Builder for nested objects in SubjectBuilder DSL. Provides JSON-like syntax without exposing buildJsonObject.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): JsonObject

Build the JSON object.

Link copied to clipboard
operator fun String.invoke(block: SubjectObjectBuilder.() -> Unit)

Add a nested property with a nested object builder.

Link copied to clipboard
infix fun String.to(value: Any?)

Add a nested property using 'to' syntax.

infix fun String.to(block: SubjectObjectBuilder.() -> Unit)

Add a nested object using 'to' syntax.

infix fun String.to(blocks: List<SubjectObjectBuilder.() -> Unit>)

Add an array of objects using DSL syntax.