fromMap static method
Gets a possible JsBeforeUnloadRequest instance from a Map value.
Implementation
static JsBeforeUnloadRequest? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = JsBeforeUnloadRequest(
message: map['message'],
url: map['url'] != null ? WebUri(map['url']) : null,
);
return instance;
}