toJson method
Convert to JSON-serializable map
Implementation
@override
Map<String, dynamic> toJson() => {
'nodeType': nodeType,
'offset': offset,
'length': length,
if (target != null) 'target': target!.toJson(),
'cascadeSections': cascadeSections.map((c) => c.toJson()).toList(),
'isNullAware': isNullAware,
};