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