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

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

        _obj = DatasetAnalysis.parse_obj({
            "embedding_information": EmbeddingInformation.from_dict(obj.get("embeddingInformation")) if obj.get("embeddingInformation") is not None else None,
            "metadata_information": MetadataInformation.from_dict(obj.get("metadataInformation")) if obj.get("metadataInformation") is not None else None
        })
        return _obj
Create an instance of DatasetAnalysis from a dict
lightly/openapi_generated/swagger_client/models/dataset_analysis.py