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

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

        _obj = Embedding2dData.parse_obj({
            "id": obj.get("id"),
            "dataset_id": obj.get("datasetId"),
            "embedding_id": obj.get("embeddingId"),
            "name": obj.get("name"),
            "created_at": obj.get("createdAt"),
            "dimensionality_reduction_method": obj.get("dimensionalityReductionMethod"),
            "coordinates_dimension1": obj.get("coordinatesDimension1"),
            "coordinates_dimension2": obj.get("coordinatesDimension2")
        })
        return _obj
Create an instance of Embedding2dData from a dict
lightly/openapi_generated/swagger_client/models/embedding2d_data.py