BatchDetectSentimentItemResult.fromJson constructor
Implementation
factory BatchDetectSentimentItemResult.fromJson(Map<String, dynamic> json) {
return BatchDetectSentimentItemResult(
index: json['Index'] as int?,
sentiment: (json['Sentiment'] as String?)?.toSentimentType(),
sentimentScore: json['SentimentScore'] != null
? SentimentScore.fromJson(
json['SentimentScore'] as Map<String, dynamic>)
: null,
);
}