actionFromMap function Null safety

Action? actionFromMap(
  1. Map<String, dynamic> actionMap
)

Implementation

Action? actionFromMap(Map<String, dynamic> actionMap) {
  ActionType actionType = ActionTypeExt.fromString(actionMap[ACTION_TYPE]);
  switch (actionType) {
    case ActionType.navigation:
      return navigationActionFromMap(actionType, actionMap);
  }
  return null;
}