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