getCityList function
- {Map? request}
Implementation
Future<List<CityListResponse>> getCityList({Map? request}) async {
appStore.setLoading(true);
try {
CityModel res = CityModel.fromMap(await (handleResponse(await buildHttpResponse(APIEndPoint.cityList, request: request, method: HttpMethod.POST))));
appStore.setLoading(false);
return res.data.validate();
} catch (e) {
appStore.setLoading(false);
throw errorSomethingWentWrong;
}
}