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.

61 lines
1.8KB

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