from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Union
from datetime import datetime
import dataclasses

@dataclass
class PortalsAuthSsoTenantsSetupOutput:
    object: str
    url: str


class mapPortalsAuthSsoTenantsSetupOutput:
    @staticmethod
    def from_dict(data: Dict[str, Any]) -> PortalsAuthSsoTenantsSetupOutput:
        return PortalsAuthSsoTenantsSetupOutput(
        object=data.get('object'),
        url=data.get('url')
        )

    @staticmethod
    def to_dict(value: Union[PortalsAuthSsoTenantsSetupOutput, Dict[str, Any], None]) -> Optional[Dict[str, Any]]:
        if value is None:
            return None
        if isinstance(value, dict):
            return value
        # assume dataclass for generated models
        return dataclasses.asdict(value)

