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.

49 lines
1.3KB

  1. class Packing {
  2. int id;
  3. int activityId;
  4. int harvestId;
  5. String executeDate;
  6. String description;
  7. num quantityLv1;
  8. num quantityLv2;
  9. num quantityLv3;
  10. num removedQuantity;
  11. Packing(
  12. {this.id,
  13. this.activityId,
  14. this.harvestId,
  15. this.executeDate,
  16. this.description,
  17. this.quantityLv1,
  18. this.quantityLv2,
  19. this.quantityLv3,
  20. this.removedQuantity});
  21. Packing.fromJson(Map<String, dynamic> json) {
  22. id = json['id'];
  23. activityId = json['activityId'];
  24. harvestId = json['harvestId'];
  25. executeDate = json['executeDate'];
  26. description = json['description'];
  27. quantityLv1 = json['quantityLv1'];
  28. quantityLv2 = json['quantityLv2'];
  29. quantityLv3 = json['quantityLv3'];
  30. removedQuantity = json['removedQuantity'];
  31. }
  32. Map<String, dynamic> toJson() {
  33. final Map<String, dynamic> data = new Map<String, dynamic>();
  34. data['id'] = this.id;
  35. data['activityId'] = this.activityId;
  36. data['harvestId'] = this.harvestId;
  37. data['executeDate'] = this.executeDate;
  38. data['description'] = this.description;
  39. data['quantityLv1'] = this.quantityLv1;
  40. data['quantityLv2'] = this.quantityLv2;
  41. data['quantityLv3'] = this.quantityLv3;
  42. data['removedQuantity'] = this.removedQuantity;
  43. return data;
  44. }
  45. }