toJson method

Map<String, dynamic> toJson()

Converts the Surahs object to a JSON representation.

Implementation

Map<String, dynamic> toJson() => {
      'number': number,
      'name': name,
      'englishName': englishName,
      'englishNameTranslation': englishNameTranslation,
      'revelationType': revelationType,
      'ayahs': ayahs.map((e) => e.toJson()).toList(),
    };