KoubeiMemberDataDesdBatchqueryModel.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. from alipay.aop.api.domain.GavintestNewLeveaOne import GavintestNewLeveaOne
  6. class KoubeiMemberDataDesdBatchqueryModel(object):
  7. def __init__(self):
  8. self._a = None
  9. self._desd = None
  10. @property
  11. def a(self):
  12. return self._a
  13. @a.setter
  14. def a(self, value):
  15. self._a = value
  16. @property
  17. def desd(self):
  18. return self._desd
  19. @desd.setter
  20. def desd(self, value):
  21. if isinstance(value, GavintestNewLeveaOne):
  22. self._desd = value
  23. else:
  24. self._desd = GavintestNewLeveaOne.from_alipay_dict(value)
  25. def to_alipay_dict(self):
  26. params = dict()
  27. if self.a:
  28. if hasattr(self.a, 'to_alipay_dict'):
  29. params['a'] = self.a.to_alipay_dict()
  30. else:
  31. params['a'] = self.a
  32. if self.desd:
  33. if hasattr(self.desd, 'to_alipay_dict'):
  34. params['desd'] = self.desd.to_alipay_dict()
  35. else:
  36. params['desd'] = self.desd
  37. return params
  38. @staticmethod
  39. def from_alipay_dict(d):
  40. if not d:
  41. return None
  42. o = KoubeiMemberDataDesdBatchqueryModel()
  43. if 'a' in d:
  44. o.a = d['a']
  45. if 'desd' in d:
  46. o.desd = d['desd']
  47. return o