Map<String, dynamic> toMap() { return { "url": url.toString(), "headers": headers, "method": method, "hasGesture": hasGesture, "isForMainFrame": isForMainFrame, "isRedirect": isRedirect }; }