callEnd method

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

Implementation

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

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

  return jsObjectToMap(result);
}