<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\Dingtalk\Vjzcrm_1_0\Models\EditCustomerRequest;

use AlibabaCloud\Tea\Model;

class data extends Model
{
    /**
     * @description This parameter is required.
     *
     * @example 张三
     *
     * @var string
     */
    public $dataUserid;

    /**
     * @var string
     */
    public $khAddress;

    /**
     * @var string
     */
    public $khAppellation;

    /**
     * @var string
     */
    public $khBefontof;

    /**
     * @var string
     */
    public $khBillinfo;

    /**
     * @var string
     */
    public $khCity;

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $khClass;

    /**
     * @var string
     */
    public $khCoaddress;

    /**
     * @var string
     */
    public $khContype;

    /**
     * @var string
     */
    public $khCountry;

    /**
     * @var string
     */
    public $khCreditgrade;

    /**
     * @var string
     */
    public $khCtnumber;

    /**
     * @var string
     */
    public $khCttype;

    /**
     * @var string
     */
    public $khDepartment;

    /**
     * @var string
     */
    public $khDingtalk;

    /**
     * @var string
     */
    public $khEmail;

    /**
     * @var string
     */
    public $khEmployees;

    /**
     * @var string
     */
    public $khFax;

    /**
     * @var string
     */
    public $khFrom;

    /**
     * @var string
     */
    public $khHandset;

    /**
     * @var string
     */
    public $khHeadship;

    /**
     * @var string
     */
    public $khHotfl;

    /**
     * @var string
     */
    public $khHotlevel;

    /**
     * @var string
     */
    public $khHotmemo;

    /**
     * @var string
     */
    public $khHottype;

    /**
     * @var string
     */
    public $khIndustry;

    /**
     * @var string
     */
    public $khInfo;

    /**
     * @var string
     */
    public $khJibie;

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $khName;

    /**
     * @var string
     */
    public $khPkhid;

    /**
     * @var string
     */
    public $khPreside;

    /**
     * @var string
     */
    public $khProvince;

    /**
     * @var string
     */
    public $khPst;

    /**
     * @var string
     */
    public $khQq;

    /**
     * @var string
     */
    public $khRalagrade;

    /**
     * @var string
     */
    public $khRemark;

    /**
     * @var string
     */
    public $khSex;

    /**
     * @var string
     */
    public $khShortname;

    /**
     * @var string
     */
    public $khSkype;

    /**
     * @var string
     */
    public $khSn;

    /**
     * @var string
     */
    public $khStatus;

    /**
     * @var string
     */
    public $khTel;

    /**
     * @var string
     */
    public $khType;

    /**
     * @var string
     */
    public $khValrating;

    /**
     * @var string
     */
    public $khWangwang;

    /**
     * @var string
     */
    public $khWeb;

    /**
     * @var string
     */
    public $khWeixin;

    /**
     * @var string
     */
    public $khWorktel;
    protected $_name = [
        'dataUserid' => 'data_userid',
        'khAddress' => 'kh_address',
        'khAppellation' => 'kh_appellation',
        'khBefontof' => 'kh_befontof',
        'khBillinfo' => 'kh_billinfo',
        'khCity' => 'kh_city',
        'khClass' => 'kh_class',
        'khCoaddress' => 'kh_coaddress',
        'khContype' => 'kh_contype',
        'khCountry' => 'kh_country',
        'khCreditgrade' => 'kh_creditgrade',
        'khCtnumber' => 'kh_ctnumber',
        'khCttype' => 'kh_cttype',
        'khDepartment' => 'kh_department',
        'khDingtalk' => 'kh_dingtalk',
        'khEmail' => 'kh_email',
        'khEmployees' => 'kh_employees',
        'khFax' => 'kh_fax',
        'khFrom' => 'kh_from',
        'khHandset' => 'kh_handset',
        'khHeadship' => 'kh_headship',
        'khHotfl' => 'kh_hotfl',
        'khHotlevel' => 'kh_hotlevel',
        'khHotmemo' => 'kh_hotmemo',
        'khHottype' => 'kh_hottype',
        'khIndustry' => 'kh_industry',
        'khInfo' => 'kh_info',
        'khJibie' => 'kh_jibie',
        'khName' => 'kh_name',
        'khPkhid' => 'kh_pkhid',
        'khPreside' => 'kh_preside',
        'khProvince' => 'kh_province',
        'khPst' => 'kh_pst',
        'khQq' => 'kh_qq',
        'khRalagrade' => 'kh_ralagrade',
        'khRemark' => 'kh_remark',
        'khSex' => 'kh_sex',
        'khShortname' => 'kh_shortname',
        'khSkype' => 'kh_skype',
        'khSn' => 'kh_sn',
        'khStatus' => 'kh_status',
        'khTel' => 'kh_tel',
        'khType' => 'kh_type',
        'khValrating' => 'kh_valrating',
        'khWangwang' => 'kh_wangwang',
        'khWeb' => 'kh_web',
        'khWeixin' => 'kh_weixin',
        'khWorktel' => 'kh_worktel',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->dataUserid) {
            $res['data_userid'] = $this->dataUserid;
        }
        if (null !== $this->khAddress) {
            $res['kh_address'] = $this->khAddress;
        }
        if (null !== $this->khAppellation) {
            $res['kh_appellation'] = $this->khAppellation;
        }
        if (null !== $this->khBefontof) {
            $res['kh_befontof'] = $this->khBefontof;
        }
        if (null !== $this->khBillinfo) {
            $res['kh_billinfo'] = $this->khBillinfo;
        }
        if (null !== $this->khCity) {
            $res['kh_city'] = $this->khCity;
        }
        if (null !== $this->khClass) {
            $res['kh_class'] = $this->khClass;
        }
        if (null !== $this->khCoaddress) {
            $res['kh_coaddress'] = $this->khCoaddress;
        }
        if (null !== $this->khContype) {
            $res['kh_contype'] = $this->khContype;
        }
        if (null !== $this->khCountry) {
            $res['kh_country'] = $this->khCountry;
        }
        if (null !== $this->khCreditgrade) {
            $res['kh_creditgrade'] = $this->khCreditgrade;
        }
        if (null !== $this->khCtnumber) {
            $res['kh_ctnumber'] = $this->khCtnumber;
        }
        if (null !== $this->khCttype) {
            $res['kh_cttype'] = $this->khCttype;
        }
        if (null !== $this->khDepartment) {
            $res['kh_department'] = $this->khDepartment;
        }
        if (null !== $this->khDingtalk) {
            $res['kh_dingtalk'] = $this->khDingtalk;
        }
        if (null !== $this->khEmail) {
            $res['kh_email'] = $this->khEmail;
        }
        if (null !== $this->khEmployees) {
            $res['kh_employees'] = $this->khEmployees;
        }
        if (null !== $this->khFax) {
            $res['kh_fax'] = $this->khFax;
        }
        if (null !== $this->khFrom) {
            $res['kh_from'] = $this->khFrom;
        }
        if (null !== $this->khHandset) {
            $res['kh_handset'] = $this->khHandset;
        }
        if (null !== $this->khHeadship) {
            $res['kh_headship'] = $this->khHeadship;
        }
        if (null !== $this->khHotfl) {
            $res['kh_hotfl'] = $this->khHotfl;
        }
        if (null !== $this->khHotlevel) {
            $res['kh_hotlevel'] = $this->khHotlevel;
        }
        if (null !== $this->khHotmemo) {
            $res['kh_hotmemo'] = $this->khHotmemo;
        }
        if (null !== $this->khHottype) {
            $res['kh_hottype'] = $this->khHottype;
        }
        if (null !== $this->khIndustry) {
            $res['kh_industry'] = $this->khIndustry;
        }
        if (null !== $this->khInfo) {
            $res['kh_info'] = $this->khInfo;
        }
        if (null !== $this->khJibie) {
            $res['kh_jibie'] = $this->khJibie;
        }
        if (null !== $this->khName) {
            $res['kh_name'] = $this->khName;
        }
        if (null !== $this->khPkhid) {
            $res['kh_pkhid'] = $this->khPkhid;
        }
        if (null !== $this->khPreside) {
            $res['kh_preside'] = $this->khPreside;
        }
        if (null !== $this->khProvince) {
            $res['kh_province'] = $this->khProvince;
        }
        if (null !== $this->khPst) {
            $res['kh_pst'] = $this->khPst;
        }
        if (null !== $this->khQq) {
            $res['kh_qq'] = $this->khQq;
        }
        if (null !== $this->khRalagrade) {
            $res['kh_ralagrade'] = $this->khRalagrade;
        }
        if (null !== $this->khRemark) {
            $res['kh_remark'] = $this->khRemark;
        }
        if (null !== $this->khSex) {
            $res['kh_sex'] = $this->khSex;
        }
        if (null !== $this->khShortname) {
            $res['kh_shortname'] = $this->khShortname;
        }
        if (null !== $this->khSkype) {
            $res['kh_skype'] = $this->khSkype;
        }
        if (null !== $this->khSn) {
            $res['kh_sn'] = $this->khSn;
        }
        if (null !== $this->khStatus) {
            $res['kh_status'] = $this->khStatus;
        }
        if (null !== $this->khTel) {
            $res['kh_tel'] = $this->khTel;
        }
        if (null !== $this->khType) {
            $res['kh_type'] = $this->khType;
        }
        if (null !== $this->khValrating) {
            $res['kh_valrating'] = $this->khValrating;
        }
        if (null !== $this->khWangwang) {
            $res['kh_wangwang'] = $this->khWangwang;
        }
        if (null !== $this->khWeb) {
            $res['kh_web'] = $this->khWeb;
        }
        if (null !== $this->khWeixin) {
            $res['kh_weixin'] = $this->khWeixin;
        }
        if (null !== $this->khWorktel) {
            $res['kh_worktel'] = $this->khWorktel;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return data
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['data_userid'])) {
            $model->dataUserid = $map['data_userid'];
        }
        if (isset($map['kh_address'])) {
            $model->khAddress = $map['kh_address'];
        }
        if (isset($map['kh_appellation'])) {
            $model->khAppellation = $map['kh_appellation'];
        }
        if (isset($map['kh_befontof'])) {
            $model->khBefontof = $map['kh_befontof'];
        }
        if (isset($map['kh_billinfo'])) {
            $model->khBillinfo = $map['kh_billinfo'];
        }
        if (isset($map['kh_city'])) {
            $model->khCity = $map['kh_city'];
        }
        if (isset($map['kh_class'])) {
            $model->khClass = $map['kh_class'];
        }
        if (isset($map['kh_coaddress'])) {
            $model->khCoaddress = $map['kh_coaddress'];
        }
        if (isset($map['kh_contype'])) {
            $model->khContype = $map['kh_contype'];
        }
        if (isset($map['kh_country'])) {
            $model->khCountry = $map['kh_country'];
        }
        if (isset($map['kh_creditgrade'])) {
            $model->khCreditgrade = $map['kh_creditgrade'];
        }
        if (isset($map['kh_ctnumber'])) {
            $model->khCtnumber = $map['kh_ctnumber'];
        }
        if (isset($map['kh_cttype'])) {
            $model->khCttype = $map['kh_cttype'];
        }
        if (isset($map['kh_department'])) {
            $model->khDepartment = $map['kh_department'];
        }
        if (isset($map['kh_dingtalk'])) {
            $model->khDingtalk = $map['kh_dingtalk'];
        }
        if (isset($map['kh_email'])) {
            $model->khEmail = $map['kh_email'];
        }
        if (isset($map['kh_employees'])) {
            $model->khEmployees = $map['kh_employees'];
        }
        if (isset($map['kh_fax'])) {
            $model->khFax = $map['kh_fax'];
        }
        if (isset($map['kh_from'])) {
            $model->khFrom = $map['kh_from'];
        }
        if (isset($map['kh_handset'])) {
            $model->khHandset = $map['kh_handset'];
        }
        if (isset($map['kh_headship'])) {
            $model->khHeadship = $map['kh_headship'];
        }
        if (isset($map['kh_hotfl'])) {
            $model->khHotfl = $map['kh_hotfl'];
        }
        if (isset($map['kh_hotlevel'])) {
            $model->khHotlevel = $map['kh_hotlevel'];
        }
        if (isset($map['kh_hotmemo'])) {
            $model->khHotmemo = $map['kh_hotmemo'];
        }
        if (isset($map['kh_hottype'])) {
            $model->khHottype = $map['kh_hottype'];
        }
        if (isset($map['kh_industry'])) {
            $model->khIndustry = $map['kh_industry'];
        }
        if (isset($map['kh_info'])) {
            $model->khInfo = $map['kh_info'];
        }
        if (isset($map['kh_jibie'])) {
            $model->khJibie = $map['kh_jibie'];
        }
        if (isset($map['kh_name'])) {
            $model->khName = $map['kh_name'];
        }
        if (isset($map['kh_pkhid'])) {
            $model->khPkhid = $map['kh_pkhid'];
        }
        if (isset($map['kh_preside'])) {
            $model->khPreside = $map['kh_preside'];
        }
        if (isset($map['kh_province'])) {
            $model->khProvince = $map['kh_province'];
        }
        if (isset($map['kh_pst'])) {
            $model->khPst = $map['kh_pst'];
        }
        if (isset($map['kh_qq'])) {
            $model->khQq = $map['kh_qq'];
        }
        if (isset($map['kh_ralagrade'])) {
            $model->khRalagrade = $map['kh_ralagrade'];
        }
        if (isset($map['kh_remark'])) {
            $model->khRemark = $map['kh_remark'];
        }
        if (isset($map['kh_sex'])) {
            $model->khSex = $map['kh_sex'];
        }
        if (isset($map['kh_shortname'])) {
            $model->khShortname = $map['kh_shortname'];
        }
        if (isset($map['kh_skype'])) {
            $model->khSkype = $map['kh_skype'];
        }
        if (isset($map['kh_sn'])) {
            $model->khSn = $map['kh_sn'];
        }
        if (isset($map['kh_status'])) {
            $model->khStatus = $map['kh_status'];
        }
        if (isset($map['kh_tel'])) {
            $model->khTel = $map['kh_tel'];
        }
        if (isset($map['kh_type'])) {
            $model->khType = $map['kh_type'];
        }
        if (isset($map['kh_valrating'])) {
            $model->khValrating = $map['kh_valrating'];
        }
        if (isset($map['kh_wangwang'])) {
            $model->khWangwang = $map['kh_wangwang'];
        }
        if (isset($map['kh_web'])) {
            $model->khWeb = $map['kh_web'];
        }
        if (isset($map['kh_weixin'])) {
            $model->khWeixin = $map['kh_weixin'];
        }
        if (isset($map['kh_worktel'])) {
            $model->khWorktel = $map['kh_worktel'];
        }

        return $model;
    }
}
