Item.fromMap constructor

Item.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Item.fromMap(Map<String, dynamic> json) => Item(
      name: json["name"],
      pricePerUnit: json["price_per_unit"],
      quantity: json["quantity"],
      weight: json["weight"],
      height: json["height"],
      width: json["width"],
      length: json["length"],
    );