piao_order_model.dart 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. class PiaoOrderModel {
  2. List<Records> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. PiaoOrderModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. PiaoOrderModel.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 expression;
  48. String usedMethods;
  49. String imgs;
  50. int brandId;
  51. String sessionId;
  52. String address;
  53. String chargerId;
  54. double travelCost;
  55. double serviceCost;
  56. double totalCost;
  57. double payCost;
  58. int arrivedTime;
  59. int statuz;
  60. int acceptStatus;
  61. int arrivedFlag;
  62. String arrivedAddress;
  63. int dataTable;
  64. String createUserId;
  65. String customerServiceId;
  66. String name;
  67. String avatarUrl;
  68. String brandName;
  69. Records(
  70. {this.id,
  71. this.createTime,
  72. this.createBy,
  73. this.updateTime,
  74. this.updateBy,
  75. this.expression,
  76. this.usedMethods,
  77. this.imgs,
  78. this.brandId,
  79. this.sessionId,
  80. this.address,
  81. this.chargerId,
  82. this.travelCost,
  83. this.serviceCost,
  84. this.payCost,
  85. this.totalCost,
  86. this.arrivedTime,
  87. this.statuz,
  88. this.acceptStatus,
  89. this.arrivedFlag,
  90. this.arrivedAddress,
  91. this.dataTable,
  92. this.createUserId,
  93. this.customerServiceId,
  94. this.name,
  95. this.avatarUrl,
  96. this.brandName});
  97. Records.fromJson(Map<String, dynamic> json) {
  98. id = json['id'];
  99. createTime = json['createTime'];
  100. createBy = json['createBy'];
  101. updateTime = json['updateTime'];
  102. updateBy = json['updateBy'];
  103. expression = json['expression'];
  104. usedMethods = json['usedMethods'];
  105. imgs = json['imgs'];
  106. brandId = json['brandId'];
  107. sessionId = json['sessionId'];
  108. payCost = json['payCost'];
  109. address = json['address'];
  110. chargerId = json['chargerId'];
  111. travelCost = json['travelCost'];
  112. serviceCost = json['serviceCost'];
  113. totalCost = json['totalCost'];
  114. arrivedTime = json['arrivedTime'];
  115. statuz = json['statuz'];
  116. acceptStatus = json['acceptStatus'];
  117. arrivedFlag = json['arrivedFlag'];
  118. arrivedAddress = json['arrivedAddress'];
  119. dataTable = json['dataTable'];
  120. createUserId = json['createUserId'];
  121. customerServiceId = json['customerServiceId'];
  122. name = json['name'];
  123. avatarUrl = json['avatarUrl'];
  124. brandName = json['brandName'];
  125. }
  126. Map<String, dynamic> toJson() {
  127. final Map<String, dynamic> data = new Map<String, dynamic>();
  128. data['id'] = this.id;
  129. data['createTime'] = this.createTime;
  130. data['createBy'] = this.createBy;
  131. data['updateTime'] = this.updateTime;
  132. data['updateBy'] = this.updateBy;
  133. data['expression'] = this.expression;
  134. data['usedMethods'] = this.usedMethods;
  135. data['imgs'] = this.imgs;
  136. data['payCost'] = this.payCost;
  137. data['brandId'] = this.brandId;
  138. data['sessionId'] = this.sessionId;
  139. data['address'] = this.address;
  140. data['chargerId'] = this.chargerId;
  141. data['travelCost'] = this.travelCost;
  142. data['serviceCost'] = this.serviceCost;
  143. data['totalCost'] = this.totalCost;
  144. data['arrivedTime'] = this.arrivedTime;
  145. data['statuz'] = this.statuz;
  146. data['acceptStatus'] = this.acceptStatus;
  147. data['arrivedFlag'] = this.arrivedFlag;
  148. data['arrivedAddress'] = this.arrivedAddress;
  149. data['dataTable'] = this.dataTable;
  150. data['createUserId'] = this.createUserId;
  151. data['customerServiceId'] = this.customerServiceId;
  152. data['name'] = this.name;
  153. data['avatarUrl'] = this.avatarUrl;
  154. data['brandName'] = this.brandName;
  155. return data;
  156. }
  157. }