Product.from constructor

Product.from({
  1. required String id,
  2. required String type,
  3. required String name,
  4. required String description,
  5. required int price,
  6. required String currency,
})

Returns the new instance of Product based on arguments.

Implementation

Product.from({
  required this.id,
  required this.type,
  required this.name,
  required this.description,
  required this.price,
  required this.currency,
});