QpcV4Word.fromJson constructor
Implementation
factory QpcV4Word.fromJson(Map<String, dynamic> json) {
return QpcV4Word(
id: (json['id'] as num).toInt(),
surah: int.parse(json['surah'].toString()),
ayah: int.parse(json['ayah'].toString()),
wordIndex: int.parse(json['word'].toString()),
text: (json['text'] ?? '').toString(),
);
}