docs: def _to_dict(self):
          """Return a json dictionary representing this model."""
          _dict = {}
          if hasattr(self, 'collection_id') and self.collection_id is not None:
              _dict['collection_id'] = self.collection_id
          if hasattr(self, 'name') and self.name is not None:
              _dict['name'] = self.name
          if hasattr(self, 'description') and self.description is not None:
              _dict['description'] = self.description
          if hasattr(self, 'created') and self.created is not None:
              _dict['created'] = datetime_to_string(self.created)
          if hasattr(self, 'updated') and self.updated is not None:
              _dict['updated'] = datetime_to_string(self.updated)
          if hasattr(self, 'status') and self.status is not None:
              _dict['status'] = self.status
          if hasattr(self,
                     'configuration_id') and self.configuration_id is not None:
              _dict['configuration_id'] = self.configuration_id
          if hasattr(self, 'language') and self.language is not None:
              _dict['language'] = self.language
          if hasattr(self,
                     'document_counts') and self.document_counts is not None:
              _dict['document_counts'] = self.document_counts._to_dict()
          if hasattr(self, 'disk_usage') and self.disk_usage is not None:
              _dict['disk_usage'] = self.disk_usage._to_dict()
          if hasattr(self,
                     'training_status') and self.training_status is not None:
              _dict['training_status'] = self.training_status._to_dict()
          if hasattr(self, 'source_crawl') and self.source_crawl is not None:
              _dict['source_crawl'] = self.source_crawl._to_dict()
          return _dict