acceptFriendApplication method

Future<Map> acceptFriendApplication(
  1. String userID,
  2. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> acceptFriendApplication(
    String userID, dynamic config) async {
  final result = await promiseToFuture(ZIM
          .getInstance()!
          .acceptFriendApplication(userID, mapToJSObj(config)))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}