Repository URL to install this package:
|
Version:
3.3.202-c2ee258 ▾
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class PublicLabel(object):
def __init__(self):
self._count = None
self._id = None
self._name = None
@property
def count(self):
return self._count
@count.setter
def count(self, value):
self._count = value
@property
def id(self):
return self._id
@id.setter
def id(self, value):
self._id = value
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self._name = value
def to_alipay_dict(self):
params = dict()
if self.count:
if hasattr(self.count, 'to_alipay_dict'):
params['count'] = self.count.to_alipay_dict()
else:
params['count'] = self.count
if self.id:
if hasattr(self.id, 'to_alipay_dict'):
params['id'] = self.id.to_alipay_dict()
else:
params['id'] = self.id
if self.name:
if hasattr(self.name, 'to_alipay_dict'):
params['name'] = self.name.to_alipay_dict()
else:
params['name'] = self.name
return params
@staticmethod
def from_alipay_dict(d):
if not d:
return None
o = PublicLabel()
if 'count' in d:
o.count = d['count']
if 'id' in d:
o.id = d['id']
if 'name' in d:
o.name = d['name']
return o