• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/View/ViewItem.php
  • Класс: BitrixImV2EntityViewViewItem
  • Вызов: ViewItem::toRestFormat
public function toRestFormat(array $option = []): array
{
	return [
		'id' => $this->getId(),
		'messageId' => $this->getMessageId(),
		'userId' => $this->getUserId(),
		'dateView' => $this->getDateView(),
	];
}