Product.fromMap constructor
Implementation
factory Product.fromMap(Map<String, dynamic> map) {
return Product(
id: map['id'],
type: map['type'],
displayName: map['displayName'],
description: map['description'],
price: map['price'],
displayPrice: map['displayPrice'],
subscription: map['subscription'] != null ? SubscriptionInfo.fromMap(map['subscription']) : null,
);
}