<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vresident_1_0\Models\UpdateResidentUserRequest;

use AlibabaCloud\Tea\Model;

class extField extends Model
{
    /**
     * @description 扩展字段名字
     *
     * @var string
     */
    public $itemName;

    /**
     * @description 扩展字段值
     *
     * @var string
     */
    public $itemValue;
    protected $_name = [
        'itemName'  => 'itemName',
        'itemValue' => 'itemValue',
    ];

    public function validate()
    {
    }

    public function toMap()
    {
        $res = [];
        if (null !== $this->itemName) {
            $res['itemName'] = $this->itemName;
        }
        if (null !== $this->itemValue) {
            $res['itemValue'] = $this->itemValue;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return extField
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['itemName'])) {
            $model->itemName = $map['itemName'];
        }
        if (isset($map['itemValue'])) {
            $model->itemValue = $map['itemValue'];
        }

        return $model;
    }
}
