AlipaySecurityProdDfesfDefBatchqueryModel.py 1.5 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 AlipaySecurityProdDfesfDefBatchqueryModel(object):
  7. def __init__(self):
  8. self._dd = None
  9. self._latitude = None
  10. @property
  11. def dd(self):
  12. return self._dd
  13. @dd.setter
  14. def dd(self, value):
  15. if isinstance(value, GavintestNewLeveaOne):
  16. self._dd = value
  17. else:
  18. self._dd = GavintestNewLeveaOne.from_alipay_dict(value)
  19. @property
  20. def latitude(self):
  21. return self._latitude
  22. @latitude.setter
  23. def latitude(self, value):
  24. self._latitude = value
  25. def to_alipay_dict(self):
  26. params = dict()
  27. if self.dd:
  28. if hasattr(self.dd, 'to_alipay_dict'):
  29. params['dd'] = self.dd.to_alipay_dict()
  30. else:
  31. params['dd'] = self.dd
  32. if self.latitude:
  33. if hasattr(self.latitude, 'to_alipay_dict'):
  34. params['latitude'] = self.latitude.to_alipay_dict()
  35. else:
  36. params['latitude'] = self.latitude
  37. return params
  38. @staticmethod
  39. def from_alipay_dict(d):
  40. if not d:
  41. return None
  42. o = AlipaySecurityProdDfesfDefBatchqueryModel()
  43. if 'dd' in d:
  44. o.dd = d['dd']
  45. if 'latitude' in d:
  46. o.latitude = d['latitude']
  47. return o