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(),
if (index != null) 'index': index!.toJson(),
'isCascaded': isCascaded,
'isNullAware': isNullAware,
};