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

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

        _obj = Trigger2dEmbeddingJobRequest.parse_obj({
            "dimensionality_reduction_method": obj.get("dimensionalityReductionMethod")
        })
        return _obj
Create an instance of Trigger2dEmbeddingJobRequest from a dict
lightly/openapi_generated/swagger_client/models/trigger2d_embedding_job_request.py