Product.fromMap constructor

Product.fromMap(
  1. Map<String, dynamic> map
)

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,
  );
}