Converts instance to a map.
Map<String, dynamic> toMap() { return { "defaultValue": defaultValue, "isMainFrame": isMainFrame, "message": message, "url": url?.toString(), }; }