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.

37 lines
988B

  1. class SuppliesUsing {
  2. int id;
  3. String dosage;
  4. int quantity;
  5. String howToUse;
  6. int suppliesInWarehouseId;
  7. int equipmentOfCustomerId;
  8. SuppliesUsing(
  9. {this.id,
  10. this.dosage,
  11. this.quantity,
  12. this.howToUse,
  13. this.suppliesInWarehouseId,
  14. this.equipmentOfCustomerId});
  15. SuppliesUsing.fromJson(Map<String, dynamic> json) {
  16. id = json['id'];
  17. dosage = json['dosage'];
  18. quantity = json['quantity'];
  19. howToUse = json['howToUse'];
  20. suppliesInWarehouseId = json['suppliesInWarehouseId'];
  21. equipmentOfCustomerId = json['equipmentOfCustomerId'];
  22. }
  23. Map<String, dynamic> toJson() {
  24. final Map<String, dynamic> data = new Map<String, dynamic>();
  25. data['id'] = this.id;
  26. data['dosage'] = this.dosage;
  27. data['quantity'] = this.quantity;
  28. data['howToUse'] = this.howToUse;
  29. data['suppliesInWarehouseId'] = this.suppliesInWarehouseId;
  30. data['equipmentOfCustomerId'] = this.equipmentOfCustomerId;
  31. return data;
  32. }
  33. }