public function getData()
{
$result = ['type' => $this->type, 'title' => $this->title];
switch ($this->type) {
case self::TYPE_POSTBACK:
$result['payload'] = $this->url;
break;
case self::TYPE_WEB:
$result['url'] = $this->url;
break;
}
return $result;
}