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.

53 lines
1.5KB

  1. class SuppliesUsing {
  2. int id;
  3. String dosage;
  4. num quantity;
  5. String unit;
  6. String howToUse;
  7. int suppliesInWarehouseId;
  8. int equipmentOfCustomerId;
  9. int tbSuppliesInWarehouseId;
  10. String supplyName;
  11. String supplyUnit;
  12. SuppliesUsing(
  13. {this.id,
  14. this.dosage,
  15. this.quantity,
  16. this.unit,
  17. this.howToUse,
  18. this.suppliesInWarehouseId,
  19. this.equipmentOfCustomerId,
  20. this.tbSuppliesInWarehouseId,
  21. this.supplyName,
  22. this.supplyUnit});
  23. SuppliesUsing.fromJson(Map<String, dynamic> json) {
  24. id = json['id'];
  25. dosage = json['dosage'];
  26. quantity = json['quantity'];
  27. unit = json['unit'];
  28. howToUse = json['howToUse'];
  29. suppliesInWarehouseId = json['suppliesInWarehouseId'];
  30. equipmentOfCustomerId = json['equipmentOfCustomerId'];
  31. tbSuppliesInWarehouseId = json['tbSuppliesInWarehouseId'];
  32. supplyName = json['supplyName'];
  33. supplyUnit = json['supplyUnit'];
  34. }
  35. Map<String, dynamic> toJson() {
  36. final Map<String, dynamic> data = new Map<String, dynamic>();
  37. data['id'] = this.id;
  38. data['dosage'] = this.dosage;
  39. data['quantity'] = this.quantity;
  40. data['unit'] = this.unit;
  41. data['howToUse'] = this.howToUse;
  42. data['suppliesInWarehouseId'] = this.suppliesInWarehouseId;
  43. data['equipmentOfCustomerId'] = this.equipmentOfCustomerId;
  44. data['tbSuppliesInWarehouseId'] = this.tbSuppliesInWarehouseId;
  45. data['supplyName'] = this.supplyName;
  46. data['supplyUnit'] = this.supplyUnit;
  47. return data;
  48. }
  49. }