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