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.

65 lines
1.7KB

  1. class Sell {
  2. int id;
  3. int cropId;
  4. int activityId;
  5. int harvestId;
  6. String executeDate;
  7. String description;
  8. String executeBy;
  9. String media;
  10. num quantityLv1;
  11. num quantityLv2;
  12. num quantityLv3;
  13. num removedQuantity;
  14. String buyer;
  15. Sell(
  16. {this.id,
  17. this.cropId,
  18. this.activityId,
  19. this.harvestId,
  20. this.executeDate,
  21. this.description,
  22. this.executeBy,
  23. this.media,
  24. this.quantityLv1,
  25. this.quantityLv2,
  26. this.quantityLv3,
  27. this.removedQuantity,
  28. this.buyer});
  29. Sell.fromJson(Map<String, dynamic> json) {
  30. id = json['id'];
  31. cropId = json['cropId'];
  32. activityId = json['activityId'];
  33. harvestId = json['harvestId'];
  34. executeDate = json['executeDate'];
  35. description = json['description'];
  36. executeBy = json['executeBy'];
  37. media = json['media'];
  38. quantityLv1 = json['quantityLv1'];
  39. quantityLv2 = json['quantityLv2'];
  40. quantityLv3 = json['quantityLv3'];
  41. removedQuantity = json['removedQuantity'];
  42. buyer = json['buyer'];
  43. }
  44. Map<String, dynamic> toJson() {
  45. final Map<String, dynamic> data = new Map<String, dynamic>();
  46. data['id'] = this.id;
  47. data['cropId'] = this.cropId;
  48. data['activityId'] = this.activityId;
  49. data['harvestId'] = this.harvestId;
  50. data['executeDate'] = this.executeDate;
  51. data['description'] = this.description;
  52. data['executeBy'] = this.executeBy;
  53. data['media'] = this.media;
  54. data['quantityLv1'] = this.quantityLv1;
  55. data['quantityLv2'] = this.quantityLv2;
  56. data['quantityLv3'] = this.quantityLv3;
  57. data['removedQuantity'] = this.removedQuantity;
  58. data['buyer'] = this.buyer;
  59. return data;
  60. }
  61. }