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