AnalyzeSentimentResponse.fromJson constructor

AnalyzeSentimentResponse.fromJson(
  1. Map json_
)

Implementation

AnalyzeSentimentResponse.fromJson(core.Map json_)
    : this(
        documentSentiment: json_.containsKey('documentSentiment')
            ? Sentiment.fromJson(json_['documentSentiment']
                as core.Map<core.String, core.dynamic>)
            : null,
        languageCode: json_['languageCode'] as core.String?,
        languageSupported: json_['languageSupported'] as core.bool?,
        sentences: (json_['sentences'] as core.List?)
            ?.map((value) => Sentence.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );