toJson method

Map<String, dynamic> toJson()

Converts SurahStatistics to JSON

Implementation

Map<String, dynamic> toJson() {
  return {
    'totalSurahs': totalSurahs,
    'totalAyat': totalAyat,
    'meccanSurahs': meccanSurahs,
    'medinanSurahs': medinanSurahs,
    'averageAyatPerSurah': averageAyatPerSurah,
    'longestSurah': longestSurah.toJson(),
    'shortestSurah': shortestSurah.toJson(),
    'ayatCounts': ayatCounts.toJson(),
    'revelationAnalysis': revelationAnalysis.toJson(),
    'source': source,
  };
}