fromMap static method
Gets a possible JsBeforeUnloadResponse instance from a Map value.
Implementation
static JsBeforeUnloadResponse? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = JsBeforeUnloadResponse();
instance.action =
JsBeforeUnloadResponseAction.fromNativeValue(map['action']);
instance.cancelButtonTitle = map['cancelButtonTitle'];
instance.confirmButtonTitle = map['confirmButtonTitle'];
instance.handledByClient = map['handledByClient'];
instance.message = map['message'];
return instance;
}