IaphubProducts.fromJson constructor
Constructor from JSON
Implementation
IaphubProducts.fromJson(Map<String, dynamic> json)
: productsForSale = (json["productsForSale"] ?? [])
.map<IaphubProduct>((data) => IaphubProduct.fromJson(data))
.toList(),
activeProducts = (json["activeProducts"] ?? [])
.map<IaphubActiveProduct>(
(data) => IaphubActiveProduct.fromJson(data))
.toList();