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