businessTypeList function

Future<List<ListingModel>> businessTypeList()

Implementation

Future<List<ListingModel>> businessTypeList() async {
  appStore.setLoading(true);
  try {
    var res = ListingTypeResponse.fromMap(await (handleResponse(await buildHttpResponse(APIEndPoint.businessTypeList, method: HttpMethod.GET))));
    appStore.setLoading(false);
    return res.data!.data.validate();
  } catch (e) {
    appStore.setLoading(false);
    throw errorSomethingWentWrong;
  }
}