AnalyzeSentimentResponse.fromJson constructor
AnalyzeSentimentResponse.fromJson(
- 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_.containsKey('languageCode')
? json_['languageCode'] as core.String
: null,
languageSupported: json_.containsKey('languageSupported')
? json_['languageSupported'] as core.bool
: null,
sentences: json_.containsKey('sentences')
? (json_['sentences'] as core.List)
.map((value) => Sentence.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);