# This file is auto-generated by oagen. Do not edit.

from __future__ import annotations

from dataclasses import dataclass
from typing import Any

from workos._types import _raise_deserialize_error


@dataclass(slots=True)
class SSOLogoutAuthorizeRequest:
    """SSO Logout Authorize Request model."""

    profile_id: str
    """The unique ID of the profile to log out."""

    @classmethod
    def from_dict(cls, data: dict[str, Any]) -> SSOLogoutAuthorizeRequest:
        """Deserialize from a dictionary."""
        try:
            return cls(
                profile_id=data["profile_id"],
            )
        except (KeyError, ValueError) as e:
            _raise_deserialize_error("SSOLogoutAuthorizeRequest", e)

    def to_dict(self) -> dict[str, Any]:
        """Serialize to a dictionary."""
        result: dict[str, Any] = {}
        result["profile_id"] = self.profile_id
        return result
