WindowOpenEvent.fromJson constructor

WindowOpenEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WindowOpenEvent.fromJson(Map<String, dynamic> json) {
  return WindowOpenEvent(
    url: json['url'] as String,
    windowName: json['windowName'] as String,
    windowFeatures:
        (json['windowFeatures'] as List).map((e) => e as String).toList(),
    userGesture: json['userGesture'] as bool? ?? false,
  );
}