fromMap static method

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

Gets a possible JsPromptRequest instance from a Map value.

Implementation

static JsPromptRequest? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = JsPromptRequest(
    defaultValue: map['defaultValue'],
    iosIsMainFrame: map['isMainFrame'],
    isMainFrame: map['isMainFrame'],
    message: map['message'],
    url: map['url'] != null ? WebUri(map['url']) : null,
  );
  return instance;
}