toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotationMetadata != null)
        'annotationMetadata': annotationMetadata!.toJson(),
      if (annotationSentiment != null)
        'annotationSentiment': annotationSentiment!,
      if (annotationSource != null) 'annotationSource': annotationSource!,
      if (annotationValue != null)
        'annotationValue': annotationValue!.toJson(),
      if (name != null) 'name': name!,
    };