actionsListFromModel function

List<Map<String, dynamic>> actionsListFromModel(
  1. List<Action> actions
)

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;
}