mapActions method

List<ActionModel>? mapActions(
  1. List? actionList
)

Implementation

List<ActionModel>? mapActions(List<dynamic>? actionList) {
  if (actionList == null) {
    return null;
  }
  return List.from(actionList
      .map((actionMap) => actionFromMap(Map<String, Object>.from(actionMap)))
      .where((element) => element != null)
      .toList());
}