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