12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayOpenMiniBaseinfoAmapQueryModel(object):
- def __init__(self):
- self._appid = None
- @property
- def appid(self):
- return self._appid
- @appid.setter
- def appid(self, value):
- self._appid = value
- def to_alipay_dict(self):
- params = dict()
- if self.appid:
- if hasattr(self.appid, 'to_alipay_dict'):
- params['appid'] = self.appid.to_alipay_dict()
- else:
- params['appid'] = self.appid
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayOpenMiniBaseinfoAmapQueryModel()
- if 'appid' in d:
- o.appid = d['appid']
- return o
|