toMap method

Map<String, dynamic> toMap()
override

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "request": request.toMap(),
    "isForMainFrame": isForMainFrame,
    "hasGesture": hasGesture,
    "isRedirect": isRedirect,
    "navigationType": navigationType?.toNativeValue(),
    "sourceFrame": sourceFrame?.toMap(),
    "targetFrame": targetFrame?.toMap(),
    "shouldPerformDownload": shouldPerformDownload,
    "isDialog": isDialog,
    "windowFeatures": windowFeatures?.toMap(),
    "windowId": windowId,
  };
}