subscriptionLists property

Future<Map<String, List<ChannelScope>>> get subscriptionLists

Gets the contacts subscription lists.

Implementation

Future<Map<String, List<ChannelScope>>> get subscriptionLists async {
  var payload = await (_module.channel.invokeMethod(
      "contact#getSubscriptionLists"));

  payload.forEach((key, value) {
    List<String> parsedValue = List<String>.from(value);
    List<ChannelScope> scopeList = <ChannelScope>[];
    for (var scopeString in parsedValue) {
      scopeList.add(AirshipUtils.parseChannelScope(scopeString));
    }
    payload[key] = scopeList;
  });
  return Map<String, List<ChannelScope>>.from(payload);
}