toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (categories != null) 'categories': categories!,
      if (documentSentiment != null) 'documentSentiment': documentSentiment!,
      if (entities != null) 'entities': entities!,
      if (language != null) 'language': language!,
      if (moderationCategories != null)
        'moderationCategories': moderationCategories!,
      if (sentences != null) 'sentences': sentences!,
      if (tokens != null) 'tokens': tokens!,
    };