muteGroup method

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

Implementation

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

  return jsObjectToMap(result);
}