Suggestion in context handler

Suggestion in context handler

Using suggestion option we can provide choices to user, my query is whether we can add suggestions dynamically or we have to create a map for each value like this

suggestions = Map();
list = List();
entry = Map();
entry.put("text","Contacts");
list.add(entry);
entry1 = Map();
entry1.put("text","Channels");
list.add(entry1);
response.put("text","Hey " + user.get("first_name") + " ,choose one option from the list! I can help you with these. :smile:");
suggestions.put("list",list);
response.put("suggestions",suggestions);

Source : https://www.zoho.com/cliq/help/platform/bot-messagehandler.html