Sentence.fromJson constructor
Sentence.fromJson(
- Object? j
Implementation
factory Sentence.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Sentence(
text: switch (json['text']) {
null => null,
Object $1 => TextSpan.fromJson($1),
},
sentiment: switch (json['sentiment']) {
null => null,
Object $1 => Sentiment.fromJson($1),
},
);
}