fromMap static method

NavigationAction? fromMap(
  1. Map<String, dynamic>? map
)

Implementation

static NavigationAction? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  return NavigationAction(
      request: URLRequest.fromMap(map["request"].cast<String, dynamic>())!,
      isForMainFrame: map["isForMainFrame"],
      androidHasGesture: map["androidHasGesture"],
      androidIsRedirect: map["androidIsRedirect"],
      iosWKNavigationType:
          IOSWKNavigationType.fromValue(map["iosWKNavigationType"]),
      iosSourceFrame: IOSWKFrameInfo.fromMap(
          map["iosSourceFrame"]?.cast<String, dynamic>()),
      iosTargetFrame: IOSWKFrameInfo.fromMap(
          map["iosTargetFrame"]?.cast<String, dynamic>()));
}