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