Surah.fromJson constructor
Implementation
factory Surah.fromJson(Map<String, dynamic> json) => Surah(
number: json["number"],
name: json["name"],
englishName: json["englishName"],
englishNameTranslation: json["englishNameTranslation"],
revelationType: revelationTypeValues.map[json["revelationType"]]!,
verse: json["verse"],
words: json["words"],
chars: json["chars"],
ayahs: List<Ayat>.from(json["ayahs"].map((x) => Ayat.fromJson(x))),
);