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

        if not isinstance(obj, dict):
            return TagChangeDataSamples.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 TagChangeDataSamples) in the input: " + str(obj))

        _obj = TagChangeDataSamples.parse_obj({
            "method": obj.get("method"),
            "count": obj.get("count"),
            "added": obj.get("added"),
            "removed": obj.get("removed")
        })
        return _obj
Create an instance of TagChangeDataSamples from a dict
lightly/openapi_generated/swagger_client/models/tag_change_data_samples.py