src/RichMessage/Image.php
protected function renderV2()
    {
        if ('google' == $this->requestSource) {
            $out = [
                'basicCard' => [],
                'platform'  => $this->v2PlatformMap[$this->requestSource],
            ];

            if ($this->imageUrl) {
                $out['basicCard']['image'] = [
                    'imageUri'          => $this->imageUrl,
                    'accessibilityText' => 'accessibility text',
                ];
            }

            return $out;
        } else {
            $out = [
                'image'    => [],
                'platform' => $this->v2PlatformMap[$this->requestSource],
            ];

            if ($this->imageUrl) {
                $out['image']['imageUri'] = $this->imageUrl;
            }

            return $out;
        }
    }
protected function renderV2()
    {
        if ('google' == $this->requestSource) {
            $out = [
                'basicCard' => [],
                'platform'  => $this->v2PlatformMap[$this->requestSource],
            ];

            if ($this->imageUrl) {
                $out['basicCard']['image'] = [
                    'imageUri'          => $this->imageUrl,
                    'accessibilityText' => 'accessibility text',
                ];
            }

            return $out;
        } else {
            $out = [
                'image'    => [],
                'platform' => $this->v2PlatformMap[$this->requestSource],
            ];

            if ($this->imageUrl) {
                $out['image']['imageUri'] = $this->imageUrl;
            }

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

@return array