WindowOpenEvent.fromJson constructor
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,
);
}