public function all(array $params = array())
    {
        $endpoint = '/admin/redirects.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Redirect::class, $response['redirects']);
    }
public function all(array $params = array())
    {
        $endpoint = '/admin/redirects.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Redirect::class, $response['redirects']);
    }
public function all ( array $ params = array ( ) ) { $ endpoint = '/admin/redirects.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createCollection ( Redirect :: class , $ response [ 'redirects' ] ) ; }
Receive a list of all redirects

@link   https://help.shopify.com/api/reference/redirect#index
@param  ListOptions $options
@return Redirect[]
Receive a list of all redirects