def METHOD_NAME(cls, credentials: Optional[Dict[Text, Any]]) -> InputChannel:
    if not credentials:
        cls.raise_missing_credentials_exception()
    return cls(
        credentials.get("user"),
        credentials.get("password"),
        credentials.get("server_url"),
    )