public function toArray()
    {
        $this->title($this->title);
        $this->makePayload($this->data);

        return $this->payload;
    }
public function toArray()
    {
        $this->title($this->title);
        $this->makePayload($this->data);

        return $this->payload;
    }
public function toArray ( ) { $ this -> title ( $ this -> title ) ; $ this -> makePayload ( $ this -> data ) ; return $ this -> payload ; }
Builds payload and returns an array.

@return array
@throws CouldNotCreateButton
Builds payload and returns an array .