<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vedu_1_0\Models\CreateRemoteClassCourseRequest;

use AlibabaCloud\Tea\Model;

class teachingParticipant extends Model
{
    /**
     * @description This parameter is required.
     *
     * @example ding1234
     *
     * @var string
     */
    public $corpId;

    /**
     * @description This parameter is required.
     *
     * @example 123456
     *
     * @var string
     */
    public $participantId;
    protected $_name = [
        'corpId' => 'corpId',
        'participantId' => 'participantId',
    ];

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
