IaphubProducts.fromJson constructor

IaphubProducts.fromJson(
  1. Map<String, dynamic> json
)

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();