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

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

        _obj = TagChangeData.parse_obj({
            "initial": TagChangeDataInitial.from_dict(obj.get("initial")) if obj.get("initial") is not None else None,
            "rename": TagChangeDataRename.from_dict(obj.get("rename")) if obj.get("rename") is not None else None,
            "upsize": TagChangeDataUpsize.from_dict(obj.get("upsize")) if obj.get("upsize") is not None else None,
            "arithmetics": TagChangeDataArithmetics.from_dict(obj.get("arithmetics")) if obj.get("arithmetics") is not None else None,
            "metadata": TagChangeDataMetadata.from_dict(obj.get("metadata")) if obj.get("metadata") is not None else None,
            "samples": TagChangeDataSamples.from_dict(obj.get("samples")) if obj.get("samples") is not None else None,
            "scatterplot": TagChangeDataScatterplot.from_dict(obj.get("scatterplot")) if obj.get("scatterplot") is not None else None,
            "sampler": TagChangeDataSampler.from_dict(obj.get("sampler")) if obj.get("sampler") is not None else None
        })
        # store additional fields in additional_properties
        for _key in obj.keys():
            if _key not in cls.__properties:
                _obj.additional_properties[_key] = obj.get(_key)

        return _obj
Create an instance of TagChangeData from a dict
lightly/openapi_generated/swagger_client/models/tag_change_data.py