NamiSKU.fromMap constructor
NamiSKU.fromMap(
- Map map
Implementation
factory NamiSKU.fromMap(Map<dynamic, dynamic> map) {
return NamiSKU(
(map['description'] as String?) ?? "",
(map['title'] as String?) ?? "",
(map['type'] as String?)._toNamiSKUType(),
map['localizedMultipliedPrice'],
(map['price'] as String?) ?? "",
map['subscriptionGroupIdentifier'],
map['skuId'],
(map['localizedPrice'] as String?) ?? "",
map['numberOfUnits'],
(map['priceLanguage'] as String?),
(map['priceCurrency'] as String?) ?? "",
(map['priceCountry'] as String?),
(map['periodUnit'] as String?)._toPeriodUnit(),
(map['featured'] as bool?) ?? false);
}