SentimentScore.fromJson constructor

SentimentScore.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SentimentScore.fromJson(Map<String, dynamic> json) {
  return SentimentScore(
    mixed: json['Mixed'] as double?,
    negative: json['Negative'] as double?,
    neutral: json['Neutral'] as double?,
    positive: json['Positive'] as double?,
  );
}