def is_valid_object(cls, data):
        """
        Returns whether the data is a valid object for the class
        """
        # .OBJECT_NAME will not exist on the base type itself
        object_name: str = getattr(cls.stripe_class, "OBJECT_NAME", "")
        if not object_name:
            return False
        return data and data.get("object") == object_name

        Returns whether the data is a valid object for the class
        
djstripe/models/base.py