toJson method
Implementation
@override
Object toJson() => {
if (dataItem != null) 'dataItem': dataItem!.toJson(),
if (annotations.isNotDefault) 'annotations': encodeList(annotations),
if (hasTruncatedAnnotations.isNotDefault)
'hasTruncatedAnnotations': hasTruncatedAnnotations,
};