Sentiment constructor

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

Implementation

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