Sentiment.fromJson constructor

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

Implementation

factory Sentiment.fromJson(Map<String, dynamic> json) => Sentiment(
    score: json["score"].toDouble(),
    len: json["len"],
    positive: (json["positive"]).toDouble(),
    neutral: (json["neutral"]).toDouble(),
    negative: (json["negative"]).toDouble());