getAllEditionsByFormat function
Lists all editions for a given type
type
can be 'translation', 'tafsir' or another result returned in 4 above
Implementation
Future<List<Edition>> getAllEditionsByFormat(String format) async {
final res = await get('/edition/format/$format');
return (res['data'] as List).map<Edition>((e) => Edition.fromMap(e as Map<String, dynamic>)).toList();
}