public function toArray()
    {
        return [
            'icon' => $this->icon,
            'title' => $this->title,
            'subtitle' => $this->subtitle,
            'fields' => $this->fields->map(function ($field) {
                return $field->toArray();
            })->all(),
            'query' => $this->query,
        ];
    }