Example #1
0
 def site_info(self, value):
     if isinstance(value, list):
         self._site_info = list()
         for i in value:
             if isinstance(i, SiteInfo):
                 self._site_info.append(i)
             else:
                 self._site_info.append(SiteInfo.from_alipay_dict(i))
Example #2
0
 def sites(self, value):
     if isinstance(value, SiteInfo):
         self._sites = value
     else:
         self._sites = SiteInfo.from_alipay_dict(value)