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

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

        _obj = GeneralInformation.parse_obj({
            "worker_information": WorkerInformation.from_dict(obj.get("workerInformation")) if obj.get("workerInformation") is not None else None,
            "run_information": RunInformation.from_dict(obj.get("runInformation")) if obj.get("runInformation") is not None else None,
            "dataset_information": DatasetInformation.from_dict(obj.get("datasetInformation")) if obj.get("datasetInformation") is not None else None,
            "annotation_savings": AnnotationSavings.from_dict(obj.get("annotationSavings")) if obj.get("annotationSavings") is not None else None,
            "selected_and_removed_image_examples": [SelectedAndRemovedImagePair.from_dict(_item) for _item in obj.get("selectedAndRemovedImageExamples")] if obj.get("selectedAndRemovedImageExamples") is not None else None
        })
        return _obj
Create an instance of GeneralInformation from a dict
lightly/openapi_generated/swagger_client/models/general_information.py