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

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

        _obj = SelectionConfigBase.parse_obj({
            "n_samples": obj.get("nSamples"),
            "proportion_samples": obj.get("proportionSamples")
        })
        return _obj
Create an instance of SelectionConfigBase from a dict
lightly/openapi_generated/swagger_client/models/selection_config_base.py