You're only converting but not adding in the `foreach` loop. Therefore only the last item would be added to the dictionary.