toJson method
Implementation
@override
Object toJson() => {
if (sentences.isNotDefault) 'sentences': encodeList(sentences),
if (entities.isNotDefault) 'entities': encodeList(entities),
if (documentSentiment != null)
'documentSentiment': documentSentiment!.toJson(),
if (languageCode.isNotDefault) 'languageCode': languageCode,
if (categories.isNotDefault) 'categories': encodeList(categories),
if (moderationCategories.isNotDefault)
'moderationCategories': encodeList(moderationCategories),
if (languageSupported.isNotDefault) 'languageSupported': languageSupported,
};