checkFriend method

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

Implementation

Future<dynamic> checkFriend(Map<String, dynamic> params) async {
  try {
    final formateParams = CheckFriend.formateParams(params);
    final res =
        await wrappedPromiseToFuture(timeWeb!.checkFriend(formateParams));
    final formateResult = CheckFriend.formateResult(jsToMap(res.data));
    return CommonUtils.returnSuccess<List<V2TimFriendCheckResult>>(
        formateResult);
  } catch (error) {
    return CommonUtils.returnErrorForValueCb<List<V2TimFriendCheckResult>>(
        error);
  }
}