toJson method
Implementation
@override
Object toJson() => {
'dataItem': ?dataItem?.toJson(),
if (annotations.isNotDefault)
'annotations': [for (final i in annotations) i.toJson()],
if (hasTruncatedAnnotations.isNotDefault)
'hasTruncatedAnnotations': hasTruncatedAnnotations,
};