public function toArray()
    {
        return [
            'name' => $this->name,
            'title' => $this->title,
            'type' => $this->type,
            'value' => $this->value,
            'attributes' => $this->getAttributesData(),
        ];
    }