getNotifications method Null safety

Future<List> getNotifications(
  1. [Map? filter]
)

Implementation

Future<List<dynamic>> getNotifications([Map? filter]) {
  var filter_dict = null;
  if (filter != null) {
    filter_dict = convertDartToNative_Dictionary(filter);
  }
  return promiseToFuture<List<dynamic>>(
      JS("", "#.getNotifications(#)", this, filter_dict));
}