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

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


class ZolozIdentificationCustomerCertifyzhubInitializeModel(object):

    def __init__(self):
        self._apdidtoken = None
        self._appname = None
        self._appversion = None
        self._biometainfo = None
        self._biz_id = None
        self._biz_scene_name = None
        self._biz_type = None
        self._cert_name = None
        self._cert_no = None
        self._cert_type = None
        self._devicemodel = None
        self._devicetype = None
        self._face_type = None
        self._has_welcome_page = None
        self._mobile = None
        self._osversion = None
        self._use_back_camera = None
        self._user_id = None

    @property
    def apdidtoken(self):
        return self._apdidtoken

    @apdidtoken.setter
    def apdidtoken(self, value):
        self._apdidtoken = value
    @property
    def appname(self):
        return self._appname

    @appname.setter
    def appname(self, value):
        self._appname = value
    @property
    def appversion(self):
        return self._appversion

    @appversion.setter
    def appversion(self, value):
        self._appversion = value
    @property
    def biometainfo(self):
        return self._biometainfo

    @biometainfo.setter
    def biometainfo(self, value):
        self._biometainfo = value
    @property
    def biz_id(self):
        return self._biz_id

    @biz_id.setter
    def biz_id(self, value):
        self._biz_id = value
    @property
    def biz_scene_name(self):
        return self._biz_scene_name

    @biz_scene_name.setter
    def biz_scene_name(self, value):
        self._biz_scene_name = value
    @property
    def biz_type(self):
        return self._biz_type

    @biz_type.setter
    def biz_type(self, value):
        self._biz_type = value
    @property
    def cert_name(self):
        return self._cert_name

    @cert_name.setter
    def cert_name(self, value):
        self._cert_name = value
    @property
    def cert_no(self):
        return self._cert_no

    @cert_no.setter
    def cert_no(self, value):
        self._cert_no = value
    @property
    def cert_type(self):
        return self._cert_type

    @cert_type.setter
    def cert_type(self, value):
        self._cert_type = value
    @property
    def devicemodel(self):
        return self._devicemodel

    @devicemodel.setter
    def devicemodel(self, value):
        self._devicemodel = value
    @property
    def devicetype(self):
        return self._devicetype

    @devicetype.setter
    def devicetype(self, value):
        self._devicetype = value
    @property
    def face_type(self):
        return self._face_type

    @face_type.setter
    def face_type(self, value):
        self._face_type = value
    @property
    def has_welcome_page(self):
        return self._has_welcome_page

    @has_welcome_page.setter
    def has_welcome_page(self, value):
        self._has_welcome_page = value
    @property
    def mobile(self):
        return self._mobile

    @mobile.setter
    def mobile(self, value):
        self._mobile = value
    @property
    def osversion(self):
        return self._osversion

    @osversion.setter
    def osversion(self, value):
        self._osversion = value
    @property
    def use_back_camera(self):
        return self._use_back_camera

    @use_back_camera.setter
    def use_back_camera(self, value):
        self._use_back_camera = value
    @property
    def user_id(self):
        return self._user_id

    @user_id.setter
    def user_id(self, value):
        self._user_id = value


    def to_alipay_dict(self):
        params = dict()
        if self.apdidtoken:
            if hasattr(self.apdidtoken, 'to_alipay_dict'):
                params['apdidtoken'] = self.apdidtoken.to_alipay_dict()
            else:
                params['apdidtoken'] = self.apdidtoken
        if self.appname:
            if hasattr(self.appname, 'to_alipay_dict'):
                params['appname'] = self.appname.to_alipay_dict()
            else:
                params['appname'] = self.appname
        if self.appversion:
            if hasattr(self.appversion, 'to_alipay_dict'):
                params['appversion'] = self.appversion.to_alipay_dict()
            else:
                params['appversion'] = self.appversion
        if self.biometainfo:
            if hasattr(self.biometainfo, 'to_alipay_dict'):
                params['biometainfo'] = self.biometainfo.to_alipay_dict()
            else:
                params['biometainfo'] = self.biometainfo
        if self.biz_id:
            if hasattr(self.biz_id, 'to_alipay_dict'):
                params['biz_id'] = self.biz_id.to_alipay_dict()
            else:
                params['biz_id'] = self.biz_id
        if self.biz_scene_name:
            if hasattr(self.biz_scene_name, 'to_alipay_dict'):
                params['biz_scene_name'] = self.biz_scene_name.to_alipay_dict()
            else:
                params['biz_scene_name'] = self.biz_scene_name
        if self.biz_type:
            if hasattr(self.biz_type, 'to_alipay_dict'):
                params['biz_type'] = self.biz_type.to_alipay_dict()
            else:
                params['biz_type'] = self.biz_type
        if self.cert_name:
            if hasattr(self.cert_name, 'to_alipay_dict'):
                params['cert_name'] = self.cert_name.to_alipay_dict()
            else:
                params['cert_name'] = self.cert_name
        if self.cert_no:
            if hasattr(self.cert_no, 'to_alipay_dict'):
                params['cert_no'] = self.cert_no.to_alipay_dict()
            else:
                params['cert_no'] = self.cert_no
        if self.cert_type:
            if hasattr(self.cert_type, 'to_alipay_dict'):
                params['cert_type'] = self.cert_type.to_alipay_dict()
            else:
                params['cert_type'] = self.cert_type
        if self.devicemodel:
            if hasattr(self.devicemodel, 'to_alipay_dict'):
                params['devicemodel'] = self.devicemodel.to_alipay_dict()
            else:
                params['devicemodel'] = self.devicemodel
        if self.devicetype:
            if hasattr(self.devicetype, 'to_alipay_dict'):
                params['devicetype'] = self.devicetype.to_alipay_dict()
            else:
                params['devicetype'] = self.devicetype
        if self.face_type:
            if hasattr(self.face_type, 'to_alipay_dict'):
                params['face_type'] = self.face_type.to_alipay_dict()
            else:
                params['face_type'] = self.face_type
        if self.has_welcome_page:
            if hasattr(self.has_welcome_page, 'to_alipay_dict'):
                params['has_welcome_page'] = self.has_welcome_page.to_alipay_dict()
            else:
                params['has_welcome_page'] = self.has_welcome_page
        if self.mobile:
            if hasattr(self.mobile, 'to_alipay_dict'):
                params['mobile'] = self.mobile.to_alipay_dict()
            else:
                params['mobile'] = self.mobile
        if self.osversion:
            if hasattr(self.osversion, 'to_alipay_dict'):
                params['osversion'] = self.osversion.to_alipay_dict()
            else:
                params['osversion'] = self.osversion
        if self.use_back_camera:
            if hasattr(self.use_back_camera, 'to_alipay_dict'):
                params['use_back_camera'] = self.use_back_camera.to_alipay_dict()
            else:
                params['use_back_camera'] = self.use_back_camera
        if self.user_id:
            if hasattr(self.user_id, 'to_alipay_dict'):
                params['user_id'] = self.user_id.to_alipay_dict()
            else:
                params['user_id'] = self.user_id
        return params

    @staticmethod
    def from_alipay_dict(d):
        if not d:
            return None
        o = ZolozIdentificationCustomerCertifyzhubInitializeModel()
        if 'apdidtoken' in d:
            o.apdidtoken = d['apdidtoken']
        if 'appname' in d:
            o.appname = d['appname']
        if 'appversion' in d:
            o.appversion = d['appversion']
        if 'biometainfo' in d:
            o.biometainfo = d['biometainfo']
        if 'biz_id' in d:
            o.biz_id = d['biz_id']
        if 'biz_scene_name' in d:
            o.biz_scene_name = d['biz_scene_name']
        if 'biz_type' in d:
            o.biz_type = d['biz_type']
        if 'cert_name' in d:
            o.cert_name = d['cert_name']
        if 'cert_no' in d:
            o.cert_no = d['cert_no']
        if 'cert_type' in d:
            o.cert_type = d['cert_type']
        if 'devicemodel' in d:
            o.devicemodel = d['devicemodel']
        if 'devicetype' in d:
            o.devicetype = d['devicetype']
        if 'face_type' in d:
            o.face_type = d['face_type']
        if 'has_welcome_page' in d:
            o.has_welcome_page = d['has_welcome_page']
        if 'mobile' in d:
            o.mobile = d['mobile']
        if 'osversion' in d:
            o.osversion = d['osversion']
        if 'use_back_camera' in d:
            o.use_back_camera = d['use_back_camera']
        if 'user_id' in d:
            o.user_id = d['user_id']
        return o


