ValueMappingResult🔗
Result used as replacement with text and color when the value matches
Definition🔗
class ValueMappingResult:
"""
Result used as replacement with text and color when the value matches
"""
# Text to display when the value matches
text: typing.Optional[str]
# Text to use when the value matches
color: typing.Optional[str]
# Icon to display when the value matches. Only specific visualizations.
icon: typing.Optional[str]
# Position in the mapping array. Only used internally.
index: typing.Optional[int]
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.