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