toJson method

Map<String, dynamic> toJson()

Converts the TextQuote object to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'text': text,
    'entities': entities?.map((e) => e.toJson()).toList(),
    'position': position,
    'is_manual': isManual,
  }..removeWhere(_nullFilter);
}