<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vindustry_1_0\Models;

use AlibabaCloud\Tea\Model;

class SupplyAddPartnerManagersRequest extends Model
{
    /**
     * @description This parameter is required.
     *
     * @example 56781213
     *
     * @var int
     */
    public $deptId;

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

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $interfaceType;
    protected $_name = [
        'deptId' => 'deptId',
        'interfaceId' => 'interfaceId',
        'interfaceType' => 'interfaceType',
    ];

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
