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

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

        _obj = TagCreateRequest.parse_obj({
            "name": obj.get("name"),
            "prev_tag_id": obj.get("prevTagId"),
            "query_tag_id": obj.get("queryTagId"),
            "preselected_tag_id": obj.get("preselectedTagId"),
            "bit_mask_data": obj.get("bitMaskData"),
            "tot_size": obj.get("totSize"),
            "creator": obj.get("creator"),
            "changes": TagChangeData.from_dict(obj.get("changes")) if obj.get("changes") is not None else None,
            "run_id": obj.get("runId")
        })
        return _obj
Create an instance of TagCreateRequest from a dict
lightly/openapi_generated/swagger_client/models/tag_create_request.py