NamiPaywall.fromMap constructor

NamiPaywall.fromMap(
  1. 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);
}