updateFriendAttributes method

Future<Map> updateFriendAttributes(
  1. dynamic friendAttributes,
  2. String userID
)

Implementation

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

  return jsObjectToMap(result);
}