callReject method

Future<Map> callReject(
  1. String callID,
  2. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> callReject(
    String callID, dynamic config) async {
  Object _config = mapToJSObj(config);

  final result =
      await promiseToFuture(ZIM.getInstance()!.callReject(callID, _config))
          .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}