• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ml/model/base.php
  • Класс: Bitrix\Crm\Ml\Model\Base
  • Вызов: Base::jsonSerialize
public function jsonSerialize(): array
{
	[$recordsSuccess, $recordsFailed] = $this->getTrainingSetSize();

	return [
		'name' => $this->getName(),
		'state' => $this->getState(),
		'title' => $this->getTitle(),
		'recordsSuccess' => $recordsSuccess,
		'recordsFailed' => $recordsFailed,
	];
}