src/Response/Card.php
public function setImg($image)
    {
        $requiredKeys = ['smallImageUrl', 'largeImageUrl'];

        if (is_array($image) && array_has($image, $requiredKeys)) {
            $this->image  = array_only($image, $requiredKeys);
        } elseif (is_string($image)) {
            $this->image = [
                'smallImageUrl' => $image,
                'largeImageUrl' =>   $image
            ];
        }

        return $this;
    }
public function setImg($image)
    {
        $requiredKeys = ['smallImageUrl', 'largeImageUrl'];

        if (is_array($image) && array_has($image, $requiredKeys)) {
            $this->image  = array_only($image, $requiredKeys);
        } elseif (is_string($image)) {
            $this->image = [
                'smallImageUrl' => $image,
                'largeImageUrl' =>   $image
            ];
        }

        return $this;
    }
@param string | array[string] $image the image url

@return $this