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