<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vh5package_1_0\Models;

use AlibabaCloud\Tea\Model;

class GetCreateStatusResponseBody extends Model
{
    /**
     * @example 1663743241146
     *
     * @var int
     */
    public $buildTime;

    /**
     * @var bool
     */
    public $finished;

    /**
     * @example 0
     *
     * @var int
     */
    public $packageSize;

    /**
     * @example 2
     *
     * @var string
     */
    public $status;

    /**
     * @example 1663748308644pjpF
     *
     * @var string
     */
    public $taskId;

    /**
     * @example 0.0.1
     *
     * @var string
     */
    public $version;
    protected $_name = [
        'buildTime' => 'buildTime',
        'finished' => 'finished',
        'packageSize' => 'packageSize',
        'status' => 'status',
        'taskId' => 'taskId',
        'version' => 'version',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->buildTime) {
            $res['buildTime'] = $this->buildTime;
        }
        if (null !== $this->finished) {
            $res['finished'] = $this->finished;
        }
        if (null !== $this->packageSize) {
            $res['packageSize'] = $this->packageSize;
        }
        if (null !== $this->status) {
            $res['status'] = $this->status;
        }
        if (null !== $this->taskId) {
            $res['taskId'] = $this->taskId;
        }
        if (null !== $this->version) {
            $res['version'] = $this->version;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return GetCreateStatusResponseBody
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['buildTime'])) {
            $model->buildTime = $map['buildTime'];
        }
        if (isset($map['finished'])) {
            $model->finished = $map['finished'];
        }
        if (isset($map['packageSize'])) {
            $model->packageSize = $map['packageSize'];
        }
        if (isset($map['status'])) {
            $model->status = $map['status'];
        }
        if (isset($map['taskId'])) {
            $model->taskId = $map['taskId'];
        }
        if (isset($map['version'])) {
            $model->version = $map['version'];
        }

        return $model;
    }
}
