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

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

        _obj = SelectionConfigV4Entry.parse_obj({
            "input": SelectionConfigV4EntryInput.from_dict(obj.get("input")) if obj.get("input") is not None else None,
            "strategy": SelectionConfigV4EntryStrategy.from_dict(obj.get("strategy")) if obj.get("strategy") is not None else None
        })
        return _obj
Create an instance of SelectionConfigV4Entry from a dict
lightly/openapi_generated/swagger_client/models/selection_config_v4_entry.py