acceptGroupJoinApplication method

Future<Map> acceptGroupJoinApplication(
  1. String userID,
  2. String groupID,
  3. dynamic config
)

Implementation

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

  return jsObjectToMap(result);
}