fromMap static method

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

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;
}