in php/src/Models/SearchResultFacet.php [30:47]
public function toMap()
{
$res = [];
if (null !== $this->key) {
$res['key'] = $this->key;
}
if (null !== $this->items) {
$res['items'] = [];
if (null !== $this->items && \is_array($this->items)) {
$n = 0;
foreach ($this->items as $item) {
$res['items'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
return $res;
}