<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vindustry_1_0\Models;

use AlibabaCloud\Tea\Model;

class SupplyAddDeptRequest extends Model
{
    /**
     * @description This parameter is required.
     *
     * @example 闪电供应商
     *
     * @var string
     */
    public $deptName;

    /**
     * @example G12345
     *
     * @var string
     */
    public $partnerNumber;

    /**
     * @description This parameter is required.
     *
     * @example 1111
     *
     * @var int
     */
    public $superDeptId;

    /**
     * @description This parameter is required.
     *
     * @example SUPPLY_CHAIN_DEPT_TYPE
     *
     * @var string
     */
    public $supplyDeptType;
    protected $_name = [
        'deptName' => 'deptName',
        'partnerNumber' => 'partnerNumber',
        'superDeptId' => 'superDeptId',
        'supplyDeptType' => 'supplyDeptType',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->deptName) {
            $res['deptName'] = $this->deptName;
        }
        if (null !== $this->partnerNumber) {
            $res['partnerNumber'] = $this->partnerNumber;
        }
        if (null !== $this->superDeptId) {
            $res['superDeptId'] = $this->superDeptId;
        }
        if (null !== $this->supplyDeptType) {
            $res['supplyDeptType'] = $this->supplyDeptType;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return SupplyAddDeptRequest
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['deptName'])) {
            $model->deptName = $map['deptName'];
        }
        if (isset($map['partnerNumber'])) {
            $model->partnerNumber = $map['partnerNumber'];
        }
        if (isset($map['superDeptId'])) {
            $model->superDeptId = $map['superDeptId'];
        }
        if (isset($map['supplyDeptType'])) {
            $model->supplyDeptType = $map['supplyDeptType'];
        }

        return $model;
    }
}
