socialUserData function

Future<SocialFriendDetail> socialUserData(
  1. {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;
  }
}