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

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

        _obj = DockerTaskDescription.parse_obj({
            "embeddings_filename": obj.get("embeddingsFilename"),
            "embeddings_hash": obj.get("embeddingsHash"),
            "method": obj.get("method"),
            "existing_selection_column_name": obj.get("existingSelectionColumnName"),
            "active_learning_scores_column_name": obj.get("activeLearningScoresColumnName"),
            "masked_out_column_name": obj.get("maskedOutColumnName"),
            "sampling_config": SamplingConfig.from_dict(obj.get("samplingConfig")) if obj.get("samplingConfig") is not None else None,
            "n_data": obj.get("nData")
        })
        return _obj
Create an instance of DockerTaskDescription from a dict
lightly/openapi_generated/swagger_client/models/docker_task_description.py