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

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

        _obj = NumericDistributionMetrics.parse_obj({
            "mean": obj.get("mean"),
            "std": obj.get("std"),
            "min": obj.get("min"),
            "median": obj.get("median"),
            "max": obj.get("max")
        })
        return _obj
Create an instance of NumericDistributionMetrics from a dict
lightly/openapi_generated/swagger_client/models/numeric_distribution_metrics.py