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

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

        _obj = MetadataInformation.parse_obj({
            "lightly_numeric": dict(
                (_k, NumericDistributionPerSet.from_dict(_v))
                for _k, _v in obj.get("lightlyNumeric").items()
            )
            if obj.get("lightlyNumeric") is not None
            else None,
            "custom_numeric": dict(
                (_k, NumericDistributionPerSet.from_dict(_v))
                for _k, _v in obj.get("customNumeric").items()
            )
            if obj.get("customNumeric") is not None
            else None,
            "custom_categorical": dict(
                (_k, CategoricalDistributionPerSet.from_dict(_v))
                for _k, _v in obj.get("customCategorical").items()
            )
            if obj.get("customCategorical") is not None
            else None
        })
        return _obj
Create an instance of MetadataInformation from a dict
lightly/openapi_generated/swagger_client/models/metadata_information.py