CanvasOptionsRoot🔗
Definition🔗
class CanvasOptionsRoot implements \JsonSerializable
{
/**
* Name of the root element
*/
public string $name;
/**
* Type of root element (frame)
*/
public string $type;
/**
* The list of canvas elements attached to the root element
* @var array<\Grafana\Foundation\Canvas\CanvasElementOptions>
*/
public array $elements;
}
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()
.