toValue method
Implementation
String toValue() {
switch (this) {
case SentimentType.positive:
return 'POSITIVE';
case SentimentType.negative:
return 'NEGATIVE';
case SentimentType.neutral:
return 'NEUTRAL';
case SentimentType.mixed:
return 'MIXED';
}
}