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

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

        _obj = TagArithmeticsRequest.parse_obj({
            "tag_id1": obj.get("tagId1"),
            "tag_id2": obj.get("tagId2"),
            "operation": obj.get("operation"),
            "new_tag_name": obj.get("newTagName"),
            "creator": obj.get("creator"),
            "run_id": obj.get("runId")
        })
        return _obj
Create an instance of TagArithmeticsRequest from a dict
lightly/openapi_generated/swagger_client/models/tag_arithmetics_request.py