toJson method

Map<String, dynamic> toJson()

Converts the Data object to a JSON representation.

Implementation

Map<String, dynamic> toJson() => {
      'surahs': surahs.map((e) => e.toJson()).toList(),
      'edition': edition.toJson(),
    };