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.4KB

  1. class Sell {
  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. String buyer;
  12. Sell(
  13. {this.id,
  14. this.activityId,
  15. this.harvestId,
  16. this.executeDate,
  17. this.description,
  18. this.quantityLv1,
  19. this.quantityLv2,
  20. this.quantityLv3,
  21. this.removedQuantity,
  22. this.buyer});
  23. Sell.fromJson(Map<String, dynamic> json) {
  24. id = json['id'];
  25. activityId = json['activityId'];
  26. harvestId = json['harvestId'];
  27. executeDate = json['executeDate'];
  28. description = json['description'];
  29. quantityLv1 = json['quantityLv1'];
  30. quantityLv2 = json['quantityLv2'];
  31. quantityLv3 = json['quantityLv3'];
  32. removedQuantity = json['removedQuantity'];
  33. buyer = json['buyer'];
  34. }
  35. Map<String, dynamic> toJson() {
  36. final Map<String, dynamic> data = new Map<String, dynamic>();
  37. data['id'] = this.id;
  38. data['activityId'] = this.activityId;
  39. data['harvestId'] = this.harvestId;
  40. data['executeDate'] = this.executeDate;
  41. data['description'] = this.description;
  42. data['quantityLv1'] = this.quantityLv1;
  43. data['quantityLv2'] = this.quantityLv2;
  44. data['quantityLv3'] = this.quantityLv3;
  45. data['removedQuantity'] = this.removedQuantity;
  46. data['buyer'] = this.buyer;
  47. return data;
  48. }
  49. }