toJson method

Map<String, dynamic> toJson()

Implementation

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