<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vcalendar_1_0\Models\ListEventsViewResponseBody\events\extendedProperties;

use AlibabaCloud\Tea\Model;

class sharedProperties extends Model
{
    /**
     * @var string
     */
    public $belongCorpId;

    /**
     * @var string
     */
    public $sourceOpenCid;
    protected $_name = [
        'belongCorpId'  => 'belongCorpId',
        'sourceOpenCid' => 'sourceOpenCid',
    ];

    public function validate()
    {
    }

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

        return $res;
    }

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

        return $model;
    }
}
