def METHOD_NAME(cls, url: str) -> "ConnectionInvitation":
    """Parse a URL-encoded invitation into a `ConnectionInvitation` message.
    Args:
        url: Url to decode
    Returns:
        A `ConnectionInvitation` object.
    """
    parts = urlparse(url)
    query = parse_qs(parts.query)
    if "c_i" in query:
        c_i = b64_to_bytes(query["c_i"][0], urlsafe=True)
        return cls.from_json(c_i)
    return None