toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'surah': surahNumber,
      'text': text,
      'page': page,
      'juz': juz,
      if (tafsir != null) 'tafsir': tafsir,
      if (audioUrl != null) 'audioUrl': audioUrl,
      if (isSajda) 'is_sajda': true,
    };