ValueMappingResult🔗
Result used as replacement with text and color when the value matches
Definition🔗
class ValueMappingResult implements \JsonSerializable
{
/**
* Text to display when the value matches
*/
public ?string $text;
/**
* Text to use when the value matches
*/
public ?string $color;
/**
* Icon to display when the value matches. Only specific visualizations.
*/
public ?string $icon;
/**
* Position in the mapping array. Only used internally.
*/
public ?int $index;
}
Methods🔗
fromArray🔗
Builds this object from an array.
This function is meant to be used with the return value of json_decode($json, true)
.
jsonSerialize🔗
Returns the data representing this object, preparing it for JSON serialization with json_encode()
.