def METHOD_NAME(cls, parsed_dict):
    # type: (Dict[Any, Any]) -> BadEvent
    timestamp = parsed_dict["origin_server_ts"]
    timestamp = timestamp if timestamp > 0 else 0
    return cls(
        parsed_dict,
        parsed_dict["event_id"],
        parsed_dict["sender"],
        timestamp,
        parsed_dict["type"],
    )