getFavouriteEventList function
Implementation
Future<List<EventListData>> getFavouriteEventList() async {
appStore.setLoading(true);
try {
var res = EventModel.fromMap(await (handleResponse(await buildHttpResponse("${APIEndPoint.favouriteList}?type=$EVENT&user_id=${appStore.userId}", method: HttpMethod.GET))));
appStore.setLoading(false);
return res.data!.eventListData.validate();
} catch (e) {
appStore.setLoading(false);
throw errorSomethingWentWrong;
}
}