updateUserOfflinePushRule method

Future<Map> updateUserOfflinePushRule(
  1. dynamic offlinePushRule
)

Implementation

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

  return jsObjectToMap(result);
}