fetchReciterById method

Future<MyResponse<Reciter>> fetchReciterById(
  1. int reciterId
)

Implementation

Future<MyResponse<Reciter>> fetchReciterById(int reciterId) async {
  var response = await DioUtils.request(DioUtils.REQUEST_GET, "${Apis.FETCH_ALL_RECITERS}$reciterId");
  if (response.statusCode == 200) {
    return MyResponse<Reciter>.fromJson(response.data,Apis.SINGLE);
  } else {
    return MyResponse<Reciter>.init(Apis.CODE_ERROR, null, null);
  }
}