• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Converter/Category.php
  • Класс: Bitrix\Crm\Service\Converter\Category
  • Вызов: Category::toJson
public function toJson($model): array
{
	if (!($model instanceof Entity\Category))
	{
		throw new ArgumentException('Model should be an instance of ' . Entity\Category::class);
	}

	$data = $this->prepareData($model->getData());

	return $this->convertKeysToCamelCase($data);
}