def METHOD_NAME(self, host: Optional[str] = None) -> str:
    host = host or MAP_APP_URL
    if not host:
        raise RuntimeError(
            "Must provide host parameter or MAP_APP_URL environment variable."
        )
    return (
        furl(host)
        .add(
            {
                "state": base64.urlsafe_b64encode(
                    gzip.compress(self.json(by_alias=True).encode())
                ).decode()
            }
        )
        .url
    )