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

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


class AlipayDigitalopUcdpApecreativeStyledesignrelationQueryModel(object):

    def __init__(self):
        self._design_id = None
        self._page_number = None
        self._page_size = None
        self._profession = None
        self._project_id = None

    @property
    def design_id(self):
        return self._design_id

    @design_id.setter
    def design_id(self, value):
        self._design_id = value
    @property
    def page_number(self):
        return self._page_number

    @page_number.setter
    def page_number(self, value):
        self._page_number = value
    @property
    def page_size(self):
        return self._page_size

    @page_size.setter
    def page_size(self, value):
        self._page_size = value
    @property
    def profession(self):
        return self._profession

    @profession.setter
    def profession(self, value):
        self._profession = value
    @property
    def project_id(self):
        return self._project_id

    @project_id.setter
    def project_id(self, value):
        self._project_id = value


    def to_alipay_dict(self):
        params = dict()
        if self.design_id:
            if hasattr(self.design_id, 'to_alipay_dict'):
                params['design_id'] = self.design_id.to_alipay_dict()
            else:
                params['design_id'] = self.design_id
        if self.page_number:
            if hasattr(self.page_number, 'to_alipay_dict'):
                params['page_number'] = self.page_number.to_alipay_dict()
            else:
                params['page_number'] = self.page_number
        if self.page_size:
            if hasattr(self.page_size, 'to_alipay_dict'):
                params['page_size'] = self.page_size.to_alipay_dict()
            else:
                params['page_size'] = self.page_size
        if self.profession:
            if hasattr(self.profession, 'to_alipay_dict'):
                params['profession'] = self.profession.to_alipay_dict()
            else:
                params['profession'] = self.profession
        if self.project_id:
            if hasattr(self.project_id, 'to_alipay_dict'):
                params['project_id'] = self.project_id.to_alipay_dict()
            else:
                params['project_id'] = self.project_id
        return params

    @staticmethod
    def from_alipay_dict(d):
        if not d:
            return None
        o = AlipayDigitalopUcdpApecreativeStyledesignrelationQueryModel()
        if 'design_id' in d:
            o.design_id = d['design_id']
        if 'page_number' in d:
            o.page_number = d['page_number']
        if 'page_size' in d:
            o.page_size = d['page_size']
        if 'profession' in d:
            o.profession = d['profession']
        if 'project_id' in d:
            o.project_id = d['project_id']
        return o


