getListFromJson static method
Implementation
static List<PrayerTime> getListFromJson(Map<dynamic, dynamic> json) {
try {
List<PrayerTime> list = [];
List<dynamic> listPrayerTimeJson = json['prayerTime'];
for (int i = 0; i < listPrayerTimeJson.length; i++) {
PrayerTime prayerTime = fromJson(listPrayerTimeJson[i]);
list.add(prayerTime);
}
return list;
} catch (e) {
throw Exception(
'PrayerTime getListFromJson method: Failed parsing json $e');
}
}