Option

interface Option : Mappable

Selectable option used by dropdowns and multi-selects.

Properties

Link copied to clipboard
abstract val color: String?

Optional UI color tag

Link copied to clipboard
abstract val deleted: Boolean

Soft-delete flag for logical removal without data loss

Link copied to clipboard
abstract val id: String

Stable identifier

Link copied to clipboard
abstract val metadata: JoyMap

Arbitrary extension data

Link copied to clipboard
abstract val value: String

Display value and stored payload

Functions

Link copied to clipboard
abstract fun toJsonObject(): JsonObject

Serializes this instance to a structured JsonObject.

Link copied to clipboard
abstract fun toJsonString(): String

Serializes this instance to a compact JSON string.

Link copied to clipboard
abstract fun toMap(): MutableMap<String, Any?>

Converts this instance into a mutable key-value map suitable for mutation and re-serialization.