toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'type': type,
'useCapture': useCapture,
'passive': passive,
'once': once,
'scriptId': scriptId.toJson(),
'lineNumber': lineNumber,
'columnNumber': columnNumber,
if (handler != null) 'handler': handler!.toJson(),
if (originalHandler != null) 'originalHandler': originalHandler!.toJson(),
if (backendNodeId != null) 'backendNodeId': backendNodeId!.toJson(),
};
}