Highlight.fromJson constructor

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

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(),
  );
}