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

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

        _obj = EmbeddingData2D.parse_obj({
            "input2d_embeddings": obj.get("input2dEmbeddings"),
            "datapool2d_embeddings": obj.get("datapool2dEmbeddings"),
            "selected_excluding_datapool2d_embeddings": obj.get("selectedExcludingDatapool2dEmbeddings"),
            "example_images": [ScatterPlotExampleImage.from_dict(_item) for _item in obj.get("exampleImages")] if obj.get("exampleImages") is not None else None
        })
        return _obj
Create an instance of EmbeddingData2D from a dict
lightly/openapi_generated/swagger_client/models/embedding_data2_d.py