$Sentiment.fromJson constructor

$Sentiment.fromJson(
  1. Map json_
)

Implementation

$Sentiment.fromJson(core.Map json_)
    : this(
        magnitude: json_.containsKey('magnitude')
            ? (json_['magnitude'] as core.num).toDouble()
            : null,
        score: json_.containsKey('score')
            ? (json_['score'] as core.num).toDouble()
            : null,
      );