AnnotateTextRequestFeatures.fromJson constructor

AnnotateTextRequestFeatures.fromJson(
  1. Map json_
)

Implementation

AnnotateTextRequestFeatures.fromJson(core.Map json_)
    : this(
        classifyText: json_.containsKey('classifyText')
            ? json_['classifyText'] as core.bool
            : null,
        extractDocumentSentiment:
            json_.containsKey('extractDocumentSentiment')
                ? json_['extractDocumentSentiment'] as core.bool
                : null,
        extractEntities: json_.containsKey('extractEntities')
            ? json_['extractEntities'] as core.bool
            : null,
        moderateText: json_.containsKey('moderateText')
            ? json_['moderateText'] as core.bool
            : null,
      );