FileCitationAnnotation.fromJson constructor
Creates a FileCitationAnnotation from JSON.
Implementation
factory FileCitationAnnotation.fromJson(Map<String, dynamic> json) {
return FileCitationAnnotation(
text: json['text'] as String,
fileCitation: FileCitation.fromJson(
json['file_citation'] as Map<String, dynamic>,
),
startIndex: json['start_index'] as int,
endIndex: json['end_index'] as int,
);
}