<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vresident_1_0\Models;

use AlibabaCloud\Tea\Model;

class UpdateResideceGroupRequest extends Model
{
    /**
     * @description This parameter is required.
     *
     * @example 12345
     *
     * @var int
     */
    public $departmentId;

    /**
     * @description This parameter is required.
     *
     * @example 第一网格组
     *
     * @var string
     */
    public $departmentName;

    /**
     * @example 1234
     *
     * @var string
     */
    public $managerUserId;
    protected $_name = [
        'departmentId' => 'departmentId',
        'departmentName' => 'departmentName',
        'managerUserId' => 'managerUserId',
    ];

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
