• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Dto/Dto.php
  • Класс: Bitrix\Crm\Dto\Dto
  • Вызов: Dto::toArray
public function toArray(): array
{
	$fields = [];

	foreach ($this->getProperties() as $property)
	{
		$name = $property->getName();
		$value = $property->getValue($this);

		if (!is_null($value))
		{
			$fields[$name] = $value;
		}
	}

	return $fields;
}