getSubscriptions static method

List<String> getSubscriptions(
  1. MemberModel member
)

Implementation

static List<String> getSubscriptions(MemberModel member) {
  if (member.subscriptions == null) return [];

  return member.subscriptions!
      .map((memberSubscriptionModel) =>
          memberSubscriptionModel.app!.documentID)
      .toList();
}