TextWithHighlights.fromJson constructor
Implementation
factory TextWithHighlights.fromJson(Map<String, dynamic> json) {
return TextWithHighlights(
highlights: (json['Highlights'] as List?)
?.whereNotNull()
.map((e) => Highlight.fromJson(e as Map<String, dynamic>))
.toList(),
text: json['Text'] as String?,
);
}