src/RichMessage/Suggestion.php
protected function renderV1()
    {
        if ('google' == $this->requestSource) {
            $out = [
                'suggestions' => [],
                'type'        => 'suggestion_chips',
                'platform'    => $this->requestSource,
            ];

            foreach ($this->replies as $i => $reply) {
                $out['suggestions'][$i]['title'] = $reply;
            }

            return $out;
        } else {
            $out = [
                'type' => self::v1MessageObjectSuggestions,
            ];

            $out['replies'] = $this->replies;

            $out['platform'] = $this->requestSource;

            return $out;
        }
    }
protected function renderV1()
    {
        if ('google' == $this->requestSource) {
            $out = [
                'suggestions' => [],
                'type'        => 'suggestion_chips',
                'platform'    => $this->requestSource,
            ];

            foreach ($this->replies as $i => $reply) {
                $out['suggestions'][$i]['title'] = $reply;
            }

            return $out;
        } else {
            $out = [
                'type' => self::v1MessageObjectSuggestions,
            ];

            $out['replies'] = $this->replies;

            $out['platform'] = $this->requestSource;

            return $out;
        }
    }
Render response as array for API V1.

@return array