actionsListFromModel function
Implementation
List<Map<String, dynamic>> actionsListFromModel(List<Action> actions) {
List<Map<String, dynamic>> actionsList = [];
for (final action in actions) {
Map<String, dynamic>? actionMap = actionToMap(action);
if (actionMap != null) {
actionsList.add(actionMap);
}
}
return actionsList;
}