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.

68 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. List<String> mediaDel;
  11. num quantityLv1;
  12. num quantityLv2;
  13. num quantityLv3;
  14. num removedQuantity;
  15. String buyer;
  16. Sell(
  17. {this.id,
  18. this.cropId,
  19. this.activityId,
  20. this.harvestId,
  21. this.executeDate,
  22. this.description,
  23. this.executeBy,
  24. this.media,
  25. this.mediaDel,
  26. this.quantityLv1,
  27. this.quantityLv2,
  28. this.quantityLv3,
  29. this.removedQuantity,
  30. this.buyer});
  31. Sell.fromJson(Map<String, dynamic> json) {
  32. id = json['id'];
  33. cropId = json['cropId'];
  34. activityId = json['activityId'];
  35. harvestId = json['harvestId'];
  36. executeDate = json['executeDate'];
  37. description = json['description'];
  38. executeBy = json['executeBy'];
  39. media = json['media'];
  40. quantityLv1 = json['quantityLv1'];
  41. quantityLv2 = json['quantityLv2'];
  42. quantityLv3 = json['quantityLv3'];
  43. removedQuantity = json['removedQuantity'];
  44. buyer = json['buyer'];
  45. }
  46. Map<String, dynamic> toJson() {
  47. final Map<String, dynamic> data = new Map<String, dynamic>();
  48. data['id'] = this.id;
  49. data['cropId'] = this.cropId;
  50. data['activityId'] = this.activityId;
  51. data['harvestId'] = this.harvestId;
  52. data['executeDate'] = this.executeDate;
  53. data['description'] = this.description;
  54. data['executeBy'] = this.executeBy;
  55. data['media'] = this.media;
  56. data['media_del'] = this.mediaDel;
  57. data['quantityLv1'] = this.quantityLv1;
  58. data['quantityLv2'] = this.quantityLv2;
  59. data['quantityLv3'] = this.quantityLv3;
  60. data['removedQuantity'] = this.removedQuantity;
  61. data['buyer'] = this.buyer;
  62. return data;
  63. }
  64. }