toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'domNodeIndex': domNodeIndex,
'boundingBox': boundingBox.toJson(),
if (layoutText != null) 'layoutText': layoutText,
if (inlineTextNodes != null)
'inlineTextNodes': inlineTextNodes!.map((e) => e.toJson()).toList(),
if (styleIndex != null) 'styleIndex': styleIndex,
if (paintOrder != null) 'paintOrder': paintOrder,
if (isStackingContext != null) 'isStackingContext': isStackingContext,
};
}