def from_dict(cls, obj: dict) -> TagChangeDataRename:
        """Create an instance of TagChangeDataRename from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return TagChangeDataRename.parse_obj(obj)

        # raise errors for additional fields in the input
        for _key in obj.keys():
            if _key not in cls.__properties:
                raise ValueError("Error due to additional fields (not defined in TagChangeDataRename) in the input: " + str(obj))

        _obj = TagChangeDataRename.parse_obj({
            "var_from": obj.get("from"),
            "to": obj.get("to")
        })
        return _obj
Create an instance of TagChangeDataRename from a dict
lightly/openapi_generated/swagger_client/models/tag_change_data_rename.py