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

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

        _obj = SamplingCreateRequest.parse_obj({
            "new_tag_name": obj.get("newTagName"),
            "method": obj.get("method"),
            "config": SamplingConfig.from_dict(obj.get("config")) if obj.get("config") is not None else None,
            "preselected_tag_id": obj.get("preselectedTagId"),
            "query_tag_id": obj.get("queryTagId"),
            "score_type": obj.get("scoreType"),
            "row_count": obj.get("rowCount")
        })
        return _obj
Create an instance of SamplingCreateRequest from a dict
lightly/openapi_generated/swagger_client/models/sampling_create_request.py