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