setEntitlements static method
Implementation
static Future<void> setEntitlements(
List<NamiEntitlementSetter> entitlements) async {
List<Map<String, dynamic>> list = List.empty(growable: true);
entitlements.forEach((element) {
var variableMap = {
'referenceId': element.referenceId,
"expires": element.expires?.millisecondsSinceEpoch,
"platform": describeEnum(element.platform),
"purchasedSKUid": element.purchasedSKUid,
};
list.add(variableMap);
});
return await channel.invokeMethod("setEntitlements", list);
}