FileChooserOpenedEvent.fromJson constructor

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

Implementation

factory FileChooserOpenedEvent.fromJson(Map<String, dynamic> json) {
  return FileChooserOpenedEvent(
    frameId: FrameId.fromJson(json['frameId'] as String),
    mode: FileChooserOpenedEventMode.fromJson(json['mode'] as String),
    backendNodeId:
        json.containsKey('backendNodeId')
            ? dom.BackendNodeId.fromJson(json['backendNodeId'] as int)
            : null,
  );
}