def users(self, value): if isinstance(value, list): self._users = list() for i in value: if isinstance(i, UserDetails): self._users.append(i) else: self._users.append(UserDetails.from_alipay_dict(i))
def user(self, value): if isinstance(value, UserDetails): self._user = value else: self._user = UserDetails.from_alipay_dict(value)