toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (classificationModelOptions != null)
        'classificationModelOptions': classificationModelOptions!,
      if (classifyText != null) 'classifyText': classifyText!,
      if (extractDocumentSentiment != null)
        'extractDocumentSentiment': extractDocumentSentiment!,
      if (extractEntities != null) 'extractEntities': extractEntities!,
      if (extractEntitySentiment != null)
        'extractEntitySentiment': extractEntitySentiment!,
      if (extractSyntax != null) 'extractSyntax': extractSyntax!,
      if (moderateText != null) 'moderateText': moderateText!,
    };