Variant

@Serializable
data class Variant(val key: VariantKey, val value: Pattern, val default: Boolean, val type: String = "Variant")(source)

A variant in a select expression.

Constructors

Link copied to clipboard
constructor(key: VariantKey, value: Pattern, default: Boolean, type: String = "Variant")

Properties

Link copied to clipboard

True if this is the default variant

Link copied to clipboard

The variant key (identifier or number)

Link copied to clipboard
Link copied to clipboard

The variant value (pattern)