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,
      language: json_['language'] as core.String?,
      sentences: (json_['sentences'] as core.List?)
          ?.map(
            (value) => Sentence.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );