You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1004B

  1. class Supply {
  2. int? id;
  3. num? quantity;
  4. String? unit;
  5. int? tbWarehouseId;
  6. String? tbWarehouseName;
  7. String? tbSuppliesName;
  8. int? tbSuppliesId;
  9. bool? isSelected;
  10. Supply({this.id, this.quantity, this.unit, this.tbWarehouseId, this.tbWarehouseName, this.tbSuppliesName, this.tbSuppliesId, this.isSelected});
  11. Supply.fromJson(Map<String, dynamic> json) {
  12. id = json['id'];
  13. quantity = json['quantity'];
  14. unit = json['unit'];
  15. tbWarehouseId = json['tbWarehouseId'];
  16. tbWarehouseName = json['tbWarehouseName'];
  17. tbSuppliesName = json['tbSuppliesName'];
  18. tbSuppliesId = json['tbSuppliesId'];
  19. isSelected = false;
  20. }
  21. Map<String, dynamic> toJson() {
  22. final data = <String, dynamic>{};
  23. data['id'] = id;
  24. data['quantity'] = quantity;
  25. data['unit'] = unit;
  26. data['tbWarehouseId'] = tbWarehouseId;
  27. data['tbWarehouseName'] = tbWarehouseName;
  28. data['tbSuppliesName'] = tbSuppliesName;
  29. data['tbSuppliesId'] = tbSuppliesId;
  30. return data;
  31. }
  32. }