AyahModel.fromDownloadedFontsJson constructor
Factory لإنشاء الموديل من json الخاص بالخطوط المنزلة Factory to create model from downloaded fonts JSON
Implementation
factory AyahModel.fromDownloadedFontsJson(Map<String, dynamic> json) {
return AyahModel(
ayahUQNumber: json['number'],
ayahNumber: json['numberInSurah'],
text: json['text'] ?? '',
ayaTextEmlaey: json['aya_text_emlaey'] ?? '',
codeV2: json['code_v2'],
juz: json['juz'],
page: json['page'],
hizb: json['hizbQuarter'],
sajda: json['sajda'],
singleAyahTextColor: json['singleAyahTextColor'],
isDownloadedFonts: true,
surahNumber: null,
lineStart: null,
lineEnd: null,
quarter: null,
englishName: null,
arabicName: null,
sajdaBool: null,
centered: null,
);
}