def advert_items(self, value): if isinstance(value, list): self._advert_items = list() for i in value: if isinstance(i, AdvertItem): self._advert_items.append(i) else: self._advert_items.append(AdvertItem.from_alipay_dict(i))
def asdf(self, value): if isinstance(value, AdvertItem): self._asdf = value else: self._asdf = AdvertItem.from_alipay_dict(value)