<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vimpaas_1_0\Models;

use AlibabaCloud\Tea\Model;

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

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

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
