Function convertToDictionaryModel