toJson method

Map<String, dynamic> toJson()

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(),
  };
}