in php/src/OSS/GetBucketResponse/listBucketResult.php [90:128]
public function toMap()
{
$res = [];
if (null !== $this->name) {
$res['Name'] = $this->name;
}
if (null !== $this->prefix) {
$res['Prefix'] = $this->prefix;
}
if (null !== $this->marker) {
$res['Marker'] = $this->marker;
}
if (null !== $this->maxKeys) {
$res['MaxKeys'] = $this->maxKeys;
}
if (null !== $this->delimiter) {
$res['Delimiter'] = $this->delimiter;
}
if (null !== $this->isTruncated) {
$res['IsTruncated'] = $this->isTruncated;
}
if (null !== $this->encodingType) {
$res['EncodingType'] = $this->encodingType;
}
if (null !== $this->commonPrefixes) {
$res['CommonPrefixes'] = $this->commonPrefixes;
}
if (null !== $this->contents) {
$res['Contents'] = [];
if (null !== $this->contents && \is_array($this->contents)) {
$n = 0;
foreach ($this->contents as $item) {
$res['Contents'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
return $res;
}