Literal

@Serializable
@SerialName(value = "Literal")
class Literal(val value: JsonPrimitive? = null) : FixtureExpression(source)

Mirror of a literal expression.

Literal values are bare JSON scalars (string, number, boolean, null) and decode as JsonPrimitive — except an explicit JSON null, which decodes to Kotlin null because the field is nullable.

Constructors

Link copied to clipboard
constructor(value: JsonPrimitive? = null)

Properties

Link copied to clipboard
val value: JsonPrimitive?

the literal's JSON scalar value, or null for the null literal.