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.

41 lines
1.0KB

  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. SuppliesUsing(
  10. {this.id,
  11. this.dosage,
  12. this.quantity,
  13. this.unit,
  14. this.howToUse,
  15. this.suppliesInWarehouseId,
  16. this.equipmentOfCustomerId});
  17. SuppliesUsing.fromJson(Map<String, dynamic> json) {
  18. id = json['id'];
  19. dosage = json['dosage'];
  20. quantity = json['quantity'];
  21. unit = json['unit'];
  22. howToUse = json['howToUse'];
  23. suppliesInWarehouseId = json['suppliesInWarehouseId'];
  24. equipmentOfCustomerId = json['equipmentOfCustomerId'];
  25. }
  26. Map<String, dynamic> toJson() {
  27. final Map<String, dynamic> data = new Map<String, dynamic>();
  28. data['id'] = this.id;
  29. data['dosage'] = this.dosage;
  30. data['quantity'] = this.quantity;
  31. data['unit'] = this.unit;
  32. data['howToUse'] = this.howToUse;
  33. data['suppliesInWarehouseId'] = this.suppliesInWarehouseId;
  34. data['equipmentOfCustomerId'] = this.equipmentOfCustomerId;
  35. return data;
  36. }
  37. }