navigationActionFromMap function Null safety

NavigationAction navigationActionFromMap(
  1. ActionType actionType,
  2. Map<String, dynamic> navigationMap
)

Implementation

NavigationAction navigationActionFromMap(
    ActionType actionType, Map<String, dynamic> navigationMap) {
  return NavigationAction(
      actionType,
      NavigationTypeExt.fromString(navigationMap[NAVIGATION_TYPE]),
      navigationMap[VALUE],
      navigationMap[KV_PAIR]);
}