fetchRecitationsList method

Future<MyResponse<Recitation>> fetchRecitationsList()

Implementation

Future<MyResponse<Recitation>> fetchRecitationsList() async {
  var response = await DioUtils.request(DioUtils.REQUEST_GET, Apis.FETCH_ALL_RECITATIONS);
  if (response.statusCode == 200) {
    return MyResponse<Recitation>.fromJson(response.data,Apis.LIST);
  } else {
    return MyResponse<Recitation>.init(Apis.CODE_ERROR, null, null);
  }
}