VariableOption🔗
Option to be selected in a variable.
Definition🔗
class VariableOption:
"""
Option to be selected in a variable.
"""
# Whether the option is selected or not
selected: typing.Optional[bool]
# Text to be displayed for the option
text: typing.Union[str, list[str]]
# Value of the option
value: typing.Union[str, list[str]]
Methods🔗
to_json🔗
Converts this object into a representation that can easily be encoded to JSON.
from_json🔗
Builds this object from a JSON-decoded dict.