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

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

        _obj = NumericDistributionPerSet.parse_obj({
            "bins": obj.get("bins"),
            "range": obj.get("range"),
            "input": NumericDistribution.from_dict(obj.get("input")) if obj.get("input") is not None else None,
            "selected": NumericDistribution.from_dict(obj.get("selected")) if obj.get("selected") is not None else None,
            "random": NumericDistribution.from_dict(obj.get("random")) if obj.get("random") is not None else None,
            "preselected_datapool": NumericDistribution.from_dict(obj.get("preselectedDatapool")) if obj.get("preselectedDatapool") is not None else None,
            "selected_with_datapool": NumericDistribution.from_dict(obj.get("selectedWithDatapool")) if obj.get("selectedWithDatapool") is not None else None
        })
        return _obj
Create an instance of NumericDistributionPerSet from a dict
lightly/openapi_generated/swagger_client/models/numeric_distribution_per_set.py