toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "name": name,
      "price_per_unit": pricePerUnit,
      "quantity": quantity,
      "weight": weight,
      "height": height,
      "width": width,
      "length": length,
    };