def to_dict(self, by_alias: bool = False):
        """Returns the dictionary representation of the model"""
        _dict = self.dict(by_alias=by_alias,
                          exclude={
                          },
                          exclude_none=True)
        # override the default output from pydantic by calling `to_dict()` of worker_information
        if self.worker_information:
            _dict['workerInformation' if by_alias else 'worker_information'] = self.worker_information.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of run_information
        if self.run_information:
            _dict['runInformation' if by_alias else 'run_information'] = self.run_information.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of dataset_information
        if self.dataset_information:
            _dict['datasetInformation' if by_alias else 'dataset_information'] = self.dataset_information.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of annotation_savings
        if self.annotation_savings:
            _dict['annotationSavings' if by_alias else 'annotation_savings'] = self.annotation_savings.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of each item in selected_and_removed_image_examples (list)
        _items = []
        if self.selected_and_removed_image_examples:
            for _item in self.selected_and_removed_image_examples:
                if _item:
                    _items.append(_item.to_dict(by_alias=by_alias))
            _dict['selectedAndRemovedImageExamples' if by_alias else 'selected_and_removed_image_examples'] = _items
        return _dict
Returns the dictionary representation of the model
lightly/openapi_generated/swagger_client/models/general_information.py