SentimentResponse.fromJson constructor

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

Implementation

factory SentimentResponse.fromJson(Map<String, dynamic> json) {
  return SentimentResponse(
    sentimentLabel: json['sentimentLabel'] as String?,
    sentimentScore: json['sentimentScore'] as String?,
  );
}