toJson method

  1. @override
Object toJson()

Implementation

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