public function toArray()
    {
        $data = [
            'text' => $this->getText(),
        ];

        if($this->getTitle()) $data['title'] = $this->getTitle();
        if($this->getTitle()) $data['ok_text'] = $this->getOkText();
        if($this->getTitle()) $data['dismiss_text'] = $this->getDismissText();

        return $data;
    }