fromJson static method

PrayerTime fromJson(
  1. Map json
)

Implementation

static PrayerTime fromJson(Map<dynamic, dynamic> json) {
  try {
    return PrayerTime(
      json['hijri'],
      json['date'],
      json['imsak'],
      json['fajr'],
      json['syuruk'],
      json['dhuhr'],
      json['asr'],
      json['maghrib'],
      json['isha'],
    );
  } catch (e) {
    throw Exception('PrayerTime fromJson method: Failed parsing json $e');
  }
}