deleteFriendsFromFriendGroup method

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

Implementation

Future<dynamic> deleteFriendsFromFriendGroup(
    Map<String, dynamic> params) async {
  try {
    final formateParams = mapToJSObj(
        {"name": params["groupName"], "userIDList": params["userIDList"]});
    final res = await wrappedPromiseToFuture(
        timeWeb!.removeFromFriendGroup(formateParams));
    log(res);
    final formateResult = FriendBlackList.formateDeleteBlackListRes(
        jsToMap(jsToMap(res.data)['friendGroup'])['userIDList']);
    return CommonUtils.returnSuccess<List<V2TimFriendOperationResult>>(
        formateResult);
  } catch (error) {
    return CommonUtils.returnErrorForValueCb<
        List<V2TimFriendOperationResult>>(error);
  }
}