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