NamiPaywall.fromMap constructor
NamiPaywall.fromMap(
- Map map
Implementation
factory NamiPaywall.fromMap(Map<dynamic, dynamic> map) {
List<dynamic> dynamicSkus = map['namiSkus'];
List<String> namiSkus = List.empty(growable: true);
dynamicSkus.forEach((element) {
namiSkus.add(element.toString());
});
return NamiPaywall(map['id'], map['type'], map['extraData'], namiSkus);
}