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

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

        _obj = SelectionConfigV3EntryStrategyAllOf.parse_obj({
            "type": obj.get("type"),
            "num_nearest_neighbors": obj.get("numNearestNeighbors"),
            "stopping_condition_minimum_typicality": obj.get("stoppingConditionMinimumTypicality"),
            "strength": obj.get("strength"),
            "stopping_condition_max_sum": obj.get("stoppingConditionMaxSum"),
            "target_range": SelectionConfigV3EntryStrategyAllOfTargetRange.from_dict(obj.get("targetRange")) if obj.get("targetRange") is not None else None
        })
        return _obj
Create an instance of SelectionConfigV3EntryStrategyAllOf from a dict
lightly/openapi_generated/swagger_client/models/selection_config_v3_entry_strategy_all_of.py