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