public function toMap()

in php/src/OSS/ListPartsResponse/listPartsResult.php [90:128]


    public function toMap()
    {
        $res = [];
        if (null !== $this->bucket) {
            $res['Bucket'] = $this->bucket;
        }
        if (null !== $this->encodingType) {
            $res['EncodingType'] = $this->encodingType;
        }
        if (null !== $this->key) {
            $res['Key'] = $this->key;
        }
        if (null !== $this->uploadId) {
            $res['UploadId'] = $this->uploadId;
        }
        if (null !== $this->partNumberMarker) {
            $res['PartNumberMarker'] = $this->partNumberMarker;
        }
        if (null !== $this->nextPartNumberMarker) {
            $res['NextPartNumberMarker'] = $this->nextPartNumberMarker;
        }
        if (null !== $this->maxParts) {
            $res['MaxParts'] = $this->maxParts;
        }
        if (null !== $this->isTruncated) {
            $res['IsTruncated'] = $this->isTruncated;
        }
        if (null !== $this->part) {
            $res['Part'] = [];
            if (null !== $this->part && \is_array($this->part)) {
                $n = 0;
                foreach ($this->part as $item) {
                    $res['Part'][$n++] = null !== $item ? $item->toMap() : $item;
                }
            }
        }

        return $res;
    }