$fields_by_name = \Joomla\Utilities\ArrayHelper::pivot($list_of_fields, 'name');

That's it for today. Take care.