navigationActionToMap function Null safety

Map<String, dynamic> navigationActionToMap(
  1. NavigationAction navigationAction
)

Implementation

Map<String, dynamic> navigationActionToMap(NavigationAction navigationAction) {
  Map<String, dynamic> navigationMap = {
    ACTION_TYPE: navigationAction.actionType.asString,
    NAVIGATION_TYPE: navigationAction.navigationType.asString,
    VALUE: navigationAction.value,
    KV_PAIR: navigationAction.kvPair
  };
  return navigationMap;
}