in php/src/Models/PushDocumentRequestModel.php [34:51]
public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->body) {
$res['body'] = [];
if (null !== $this->body && \is_array($this->body)) {
$n = 0;
foreach ($this->body as $item) {
$res['body'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
return $res;
}