socialUserData function
- {required int id}
Implementation
Future<SocialFriendDetail> socialUserData({required int id}) async {
appStore.setLoading(true);
Map req = {
UserKeys.id: id,
};
try {
var res = SocialFriendDetail.fromMap(await (handleResponse(await buildHttpResponse(APIEndPoint.socialUserDetail, request: req, method: HttpMethod.POST))));
appStore.setLoading(false);
return res;
} catch (e) {
appStore.setLoading(false);
throw errorSomethingWentWrong;
}
}