SentimentAnalysisResult constructor

SentimentAnalysisResult({
  1. double? score,
  2. double? magnitude,
})

Implementation

factory SentimentAnalysisResult({
  $core.double? score,
  $core.double? magnitude,
}) {
  final _result = create();
  if (score != null) {
    _result.score = score;
  }
  if (magnitude != null) {
    _result.magnitude = magnitude;
  }
  return _result;
}