public static function getPagination(ResponseInterface $response)
    {
        try {
            return array_filter(static::getContent($response), function ($key) {
                return in_array($key, ['size', 'page', 'pagelen', 'next', 'previous'], true);
            }, ARRAY_FILTER_USE_KEY);
        } catch (DecodingFailedException $e) {
            return [];
        }
    }