fetchRecitationById method
Implementation
Future<MyResponse<Recitation>> fetchRecitationById(int recitationId) async {
var response = await DioUtils.request(DioUtils.REQUEST_GET, "${Apis.FETCH_ALL_RECITATIONS}$recitationId");
if (response.statusCode == 200) {
return MyResponse<Recitation>.fromJson(response.data,Apis.SINGLE);
} else {
return MyResponse<Recitation>.init(Apis.CODE_ERROR, null, null);
}
}