#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json

from alipay.aop.api.constant.ParamConstants import *


class AlipaySecurityBayuQueryModel(object):

    def __init__(self):
        self._address = None

    @property
    def address(self):
        return self._address

    @address.setter
    def address(self, value):
        self._address = value


    def to_alipay_dict(self):
        params = dict()
        if self.address:
            if hasattr(self.address, 'to_alipay_dict'):
                params['address'] = self.address.to_alipay_dict()
            else:
                params['address'] = self.address
        return params

    @staticmethod
    def from_alipay_dict(d):
        if not d:
            return None
        o = AlipaySecurityBayuQueryModel()
        if 'address' in d:
            o.address = d['address']
        return o


