Item.fromJson constructor

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

Implementation

Item.fromJson(Map<String, dynamic> json) {
  name = json["name"];
  qty = json["qty"];
  id = json["id"];
  price = json["price"];

  cat1 = json["cat1"];
  cat2 = json["cat2"];
  cat3 = json["cat3"];

  categoryType = json["category_type"];
  categoryCode = json["category_code"];
  startDate = json["start_date"];
  endDate = json["end_date"];
}