<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vproject_1_0\Models;

use AlibabaCloud\Tea\Model;

class UpdateOrganizationTaskExecutorRequest extends Model
{
    /**
     * @var bool
     */
    public $disableActivity;

    /**
     * @var bool
     */
    public $disableNotification;

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $executorId;
    protected $_name = [
        'disableActivity' => 'disableActivity',
        'disableNotification' => 'disableNotification',
        'executorId' => 'executorId',
    ];

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
