toJson method
override
Implementation
@override
Map<String, dynamic> toJson() => <String, Object?>{
'type': type,
if (script?.toJson() case final scriptValue?) 'script': scriptValue,
if (scriptUri case final scriptUriValue?) 'scriptUri': scriptUriValue,
if (tokenPos case final tokenPosValue?) 'tokenPos': tokenPosValue,
if (line case final lineValue?) 'line': lineValue,
if (column case final columnValue?) 'column': columnValue,
};