def to_dict(self) -> dict: return clean_null_terms( dict(uid=self.uid, images=self._to_dict_list(self.images), detections=self._to_dict_list(self.detections), objects=self._to_dict_list(self.objects), texts=self._to_dict_list(self.texts), scenes=self._to_dict_list(self.scenes), colors=self._to_dict_list(self.colors)))
def to_dict(self): if self.children is not None: children = [c.to_dict() for c in self.children] else: children = None return clean_null_terms( dict(subject=self.subject, filters=self.filters, uid=self.uid, children=children))
def to_dict(self): return clean_null_terms( dict(uid=self.uid, upload_url=self.upload_url, image_key=self.image_key))
def to_dict(self) -> dict: return clean_null_terms( dict(uid=self.uid, depends_on=self.depends_on, subject=self.subject, filters=self.filters))