toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts to JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  'type': 'file_citation',
  'text': text,
  'file_citation': fileCitation.toJson(),
  'start_index': startIndex,
  'end_index': endIndex,
};