vipfee_model.dart 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. class FeeModel {
  2. List<Records> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. FeeModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. FeeModel.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<Records>();
  18. json['records'].forEach((v) {
  19. records.add(new Records.fromJson(v));
  20. });
  21. }
  22. total = json['total'];
  23. size = json['size'];
  24. current = json['current'];
  25. searchCount = json['searchCount'];
  26. pages = json['pages'];
  27. }
  28. Map<String, dynamic> toJson() {
  29. final Map<String, dynamic> data = new Map<String, dynamic>();
  30. if (this.records != null) {
  31. data['records'] = this.records.map((v) => v.toJson()).toList();
  32. }
  33. data['total'] = this.total;
  34. data['size'] = this.size;
  35. data['current'] = this.current;
  36. data['searchCount'] = this.searchCount;
  37. data['pages'] = this.pages;
  38. return data;
  39. }
  40. }
  41. class Records {
  42. int id;
  43. int createTime;
  44. String createBy;
  45. int updateTime;
  46. String updateBy;
  47. String name;
  48. double price;
  49. int period;
  50. int examineFlag;
  51. String notExamineReason;
  52. Records(
  53. {this.id,
  54. this.createTime,
  55. this.createBy,
  56. this.updateTime,
  57. this.updateBy,
  58. this.name,
  59. this.price,
  60. this.period,
  61. this.examineFlag,
  62. this.notExamineReason});
  63. Records.fromJson(Map<String, dynamic> json) {
  64. id = json['id'];
  65. createTime = json['createTime'];
  66. createBy = json['createBy'];
  67. updateTime = json['updateTime'];
  68. updateBy = json['updateBy'];
  69. name = json['name'];
  70. price = json['price'];
  71. period = json['period'];
  72. examineFlag = json['examineFlag'];
  73. notExamineReason = json['notExamineReason'];
  74. }
  75. Map<String, dynamic> toJson() {
  76. final Map<String, dynamic> data = new Map<String, dynamic>();
  77. data['id'] = this.id;
  78. data['createTime'] = this.createTime;
  79. data['createBy'] = this.createBy;
  80. data['updateTime'] = this.updateTime;
  81. data['updateBy'] = this.updateBy;
  82. data['name'] = this.name;
  83. data['price'] = this.price;
  84. data['period'] = this.period;
  85. data['examineFlag'] = this.examineFlag;
  86. data['notExamineReason'] = this.notExamineReason;
  87. return data;
  88. }
  89. }