Highlight.fromJson constructor
Implementation
factory Highlight.fromJson(Map<String, dynamic> json) {
return Highlight(
beginOffset: json['BeginOffset'] as int,
endOffset: json['EndOffset'] as int,
topAnswer: json['TopAnswer'] as bool?,
type: (json['Type'] as String?)?.toHighlightType(),
);
}