meta

fun meta(block: JsonObjectBuilder.() -> Unit)(source)

Sets optional metadata for the content using a DSL builder.

Example:

userText {
text = "Hello"
meta {
put("source", JsonPrimitive("user-input"))
}
}

Parameters

block

Lambda for building the metadata