SwitchVariableSpec🔗
Definition🔗
class SwitchVariableSpec implements \JsonSerializable
{
public string $name;
public string $current;
public string $enabledValue;
public string $disabledValue;
public ?string $label;
public \Grafana\Foundation\Dashboardv2beta1\VariableHide $hide;
public bool $skipUrlSync;
public ?string $description;
}
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().