deleteFriendApplication method

Future deleteFriendApplication(
  1. Map<String, dynamic> params
)

Implementation

Future<dynamic> deleteFriendApplication(Map<String, dynamic> params) async {
  try {
    final formateParams = mapToJSObj({
      "userID": params["userID"],
      "type": FriendTypeWeb.convertToApplicationFriendType(params["type"])
    });
    final res = await wrappedPromiseToFuture(
        timeWeb!.deleteFriendApplication(formateParams));
    return CommonUtils.returnSuccessForCb(jsToMap(res.data));
  } catch (error) {
    return CommonUtils.returnError(error);
  }
}