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