<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vcalendar_1_0\Models\PatchEventResponseBody;

use AlibabaCloud\Tea\Model;

class uiConfigs extends Model
{
    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $uiName;

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

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
