#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayDataAiserviceCloudbusPredictbuslineRetryModel(object): def __init__(self): self._app_version = None self._city_code = None self._partner_id = None self._plan_id = None @property def app_version(self): return self._app_version @app_version.setter def app_version(self, value): self._app_version = value @property def city_code(self): return self._city_code @city_code.setter def city_code(self, value): self._city_code = value @property def partner_id(self): return self._partner_id @partner_id.setter def partner_id(self, value): self._partner_id = value @property def plan_id(self): return self._plan_id @plan_id.setter def plan_id(self, value): self._plan_id = value def to_alipay_dict(self): params = dict() if self.app_version: if hasattr(self.app_version, 'to_alipay_dict'): params['app_version'] = self.app_version.to_alipay_dict() else: params['app_version'] = self.app_version 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.partner_id: if hasattr(self.partner_id, 'to_alipay_dict'): params['partner_id'] = self.partner_id.to_alipay_dict() else: params['partner_id'] = self.partner_id if self.plan_id: if hasattr(self.plan_id, 'to_alipay_dict'): params['plan_id'] = self.plan_id.to_alipay_dict() else: params['plan_id'] = self.plan_id return params @staticmethod def from_alipay_dict(d): if not d: return None o = AlipayDataAiserviceCloudbusPredictbuslineRetryModel() if 'app_version' in d: o.app_version = d['app_version'] if 'city_code' in d: o.city_code = d['city_code'] if 'partner_id' in d: o.partner_id = d['partner_id'] if 'plan_id' in d: o.plan_id = d['plan_id'] return o