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

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

        _obj = SelectionConfigEntryStrategy.parse_obj({
            "type": obj.get("type"),
            "stopping_condition_minimum_distance": obj.get("stopping_condition_minimum_distance"),
            "threshold": obj.get("threshold"),
            "operation": obj.get("operation"),
            "target": obj.get("target")
        })
        return _obj
Create an instance of SelectionConfigEntryStrategy from a dict
lightly/openapi_generated/swagger_client/models/selection_config_entry_strategy.py