<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vcontact_1_0\Models\BatchApproveUnionApplyRequest;

use AlibabaCloud\Tea\Model;

class body extends Model
{
    /**
     * @example ding1234
     *
     * @var string
     */
    public $branchCorpId;

    /**
     * @example 123456
     *
     * @var int
     */
    public $linkDeptId;

    /**
     * @example 测试
     *
     * @var string
     */
    public $unionRootName;
    protected $_name = [
        'branchCorpId' => 'branchCorpId',
        'linkDeptId' => 'linkDeptId',
        'unionRootName' => 'unionRootName',
    ];

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
