def __json__(self, req): res = Base.__json__(self, req) res['domainelement'] = self.domainelement.__json__(req) \ if self.domainelement else None res['valueset'] = self.valueset.__json__(req) return res
def __solr__(self, req): return _add_solr_language_info(Base.__solr__(self, req), self)
def __solr__(self, req): res = Base.__solr__(self, req) res['altname_txt'] = [i.name for i in self.identifiers if i.type == 'name'] return _add_solr_language_info(res, self)
def __json__(self, req): res = Base.__json__(self, req) res["domainelement"] = self.domainelement.__json__(req) if self.domainelement else None res["valueset"] = self.valueset.__json__(req) return res