muteGroupMembers method

Future<Map> muteGroupMembers(
  1. bool isMute,
  2. dynamic userIDs,
  3. String groupID,
  4. dynamic config,
)

Implementation

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

  return jsObjectToMap(result);
}