<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vedu_1_0\Models\QueryClassScheduleResponseBody\config\sectionModels;

use AlibabaCloud\Tea\Model;

class start extends Model
{
    /**
     * @description 小时。
     *
     * @var int
     */
    public $hour;

    /**
     * @description 分钟
     *
     * @var int
     */
    public $min;
    protected $_name = [
        'hour' => 'hour',
        'min'  => 'min',
    ];

    public function validate()
    {
    }

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

        return $res;
    }

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

        return $model;
    }
}
