lift_detail_item.dart 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. class LiftDetailItem{
  2. String createDate;
  3. String creatorId;
  4. String updateDate;
  5. String updateId;
  6. String id;
  7. String registrationCode;
  8. int category;
  9. int liftType;
  10. String categoryName;
  11. String liftCode;
  12. String manufactureDate;
  13. String factoryCode;
  14. int deviceUsage;
  15. String deviceUsageName;
  16. String liftBrand;
  17. String installCompany;
  18. String liftModel;
  19. String pulleyDiameter;
  20. String ropeNum;
  21. String lockModel;
  22. String ratedLoad;
  23. String promoteHeight;
  24. String stepWidth;
  25. String sidewalkLength;
  26. String tiltAngle;
  27. String motorPower;
  28. String ratedSpeed;
  29. String layerStationDoor;
  30. String clampType;
  31. String reformCompany;
  32. String devicePosition;
  33. String coordinate;
  34. String remarks;
  35. String steelBelt;
  36. String cylinderType;
  37. String cylinderNum;
  38. String topType;
  39. String controlType;
  40. String mpa;
  41. String factory;
  42. String customNumber;
  43. String useCompanyCode;
  44. String devicePositionCode;
  45. String agency;
  46. String reformDate;
  47. String installDate;
  48. String innerFloor;
  49. String annualInspectionDate;
  50. String areaCode;
  51. String deviceId;
  52. String deviceType;
  53. String liftStatus;
  54. String workerName;
  55. String workerId;
  56. LiftDetailItem(
  57. {this.createDate = "",
  58. this.creatorId= "",
  59. this.updateDate = "",
  60. this.updateId = "",
  61. this.id = "",
  62. this.registrationCode = "",
  63. this.category = 0,
  64. this.liftType = 0,
  65. this.categoryName = "",
  66. this.liftCode = "",
  67. this.manufactureDate = "",
  68. this.factoryCode = "",
  69. this.deviceUsage = 0,
  70. this.deviceUsageName="",
  71. this.liftBrand = "",
  72. this.installCompany = "",
  73. this.liftModel = "",
  74. this.pulleyDiameter = "",
  75. this.ropeNum = "",
  76. this.lockModel = "",
  77. this.ratedLoad = "",
  78. this.promoteHeight = "",
  79. this.stepWidth = "",
  80. this.sidewalkLength = "",
  81. this.tiltAngle = "",
  82. this.motorPower = "",
  83. this.ratedSpeed = "",
  84. this.layerStationDoor = "",
  85. this.clampType = "",
  86. this.reformCompany = "",
  87. this.devicePosition = "",
  88. this.coordinate = "",
  89. this.remarks = "",
  90. this.steelBelt = "",
  91. this.cylinderType = "",
  92. this.cylinderNum = "",
  93. this.topType = "",
  94. this.controlType = "",
  95. this.mpa = "",
  96. this.factory = "",
  97. this.customNumber = "",
  98. this.useCompanyCode = "",
  99. this.devicePositionCode = "",
  100. this.agency = "",
  101. this.reformDate = "",
  102. this.installDate = "",
  103. this.innerFloor = "",
  104. this.annualInspectionDate = "",
  105. this.areaCode = "",
  106. this.deviceId = "",
  107. this.deviceType = "",
  108. this.liftStatus = "",
  109. this.workerName = "",
  110. this.workerId = ""});
  111. LiftDetailItem.fromJsonMap(Map<String, dynamic> json) {
  112. createDate = json['createDate']??"";
  113. creatorId = json['creatorId']??"";
  114. updateDate = json['updateDate']??"";
  115. updateId = json['updateId']??"";
  116. id = json['id']??"";
  117. registrationCode = json['registrationCode']??"";
  118. category = json['category']??0;
  119. liftType = json['liftType']??0;
  120. liftCode = json['liftCode']??"";
  121. manufactureDate = json['manufactureDate']??"";
  122. factoryCode = json['factoryCode']??"";
  123. deviceUsage =json['deviceUsage'];
  124. liftBrand = "${json['liftBrand']}";
  125. installCompany = "${json['installCompany']}";
  126. liftModel = "${json['liftModel']}";
  127. pulleyDiameter = "${json['pulleyDiameter']}";
  128. ropeNum = "${json['ropeNum']}";
  129. lockModel = "${json['lockModel']}";
  130. ratedLoad = "${json['ratedLoad']}";
  131. promoteHeight = "${json['promoteHeight']}";
  132. stepWidth = "${json['stepWidth']}";
  133. sidewalkLength = "${json['sidewalkLength']}";
  134. tiltAngle = "${json['tiltAngle']}";
  135. motorPower = "${json['motorPower']}";
  136. ratedSpeed = "${json['ratedSpeed']}";
  137. layerStationDoor = "${json['layerStationDoor']}";
  138. clampType = "${json['clampType']}";
  139. reformCompany = "${json['reformCompany']}";
  140. devicePosition = "${json['devicePosition']}";
  141. coordinate = "${json['coordinate']??""}";
  142. remarks = "${json['remarks']}";
  143. steelBelt = "${json['steelBelt']}";
  144. cylinderType = "${json['cylinderType']}";
  145. cylinderNum = "${json['cylinderNum']}";
  146. topType = "${json['topType']}";
  147. controlType = "${json['controlType']}";
  148. mpa = "${json['mpa']}";
  149. factory = "${json['factory']}";
  150. customNumber = "${json['customNumber']}";
  151. useCompanyCode = "${json['useCompanyCode']}";
  152. devicePositionCode = "${json['devicePositionCode']}";
  153. agency = "${json['agency']}";
  154. reformDate = "${json['reformDate']}";
  155. installDate = "${json['installDate']}";
  156. innerFloor = "${json['innerFloor']}";
  157. annualInspectionDate = "${json['annualInspectionDate']}";
  158. areaCode = "${json['areaCode']}";
  159. deviceId = "${json['deviceId']}";
  160. deviceType = json['deviceType']??"";
  161. liftStatus = "${json['liftStatus']}";
  162. workerName = "${json['workerName']}";
  163. workerId = "${json['workerId']}";
  164. }
  165. Map<String, dynamic> toJson() {
  166. final Map<String, dynamic> data = new Map<String, dynamic>();
  167. data['createDate'] = this.createDate;
  168. data['creatorId'] = this.creatorId;
  169. data['updateDate'] = this.updateDate;
  170. data['updateId'] = this.updateId;
  171. data['id'] = this.id;
  172. data['registrationCode'] = this.registrationCode;
  173. data['category'] = this.category;
  174. data['liftType'] = this.liftType;
  175. data['liftCode'] = this.liftCode;
  176. data['manufactureDate'] = this.manufactureDate;
  177. data['factoryCode'] = this.factoryCode;
  178. data['deviceUsage'] = this.deviceUsage;
  179. data['liftBrand'] = this.liftBrand;
  180. data['installCompany'] = this.installCompany;
  181. data['liftModel'] = this.liftModel;
  182. data['pulleyDiameter'] = this.pulleyDiameter;
  183. data['ropeNum'] = this.ropeNum;
  184. data['lockModel'] = this.lockModel;
  185. data['ratedLoad'] = this.ratedLoad;
  186. data['promoteHeight'] = this.promoteHeight;
  187. data['stepWidth'] = this.stepWidth;
  188. data['sidewalkLength'] = this.sidewalkLength;
  189. data['tiltAngle'] = this.tiltAngle;
  190. data['motorPower'] = this.motorPower;
  191. data['ratedSpeed'] = this.ratedSpeed;
  192. data['layerStationDoor'] = this.layerStationDoor;
  193. data['clampType'] = this.clampType;
  194. data['reformCompany'] = this.reformCompany;
  195. data['devicePosition'] = this.devicePosition;
  196. data['coordinate'] = this.coordinate;
  197. data['remarks'] = this.remarks;
  198. data['steelBelt'] = this.steelBelt;
  199. data['cylinderType'] = this.cylinderType;
  200. data['cylinderNum'] = this.cylinderNum;
  201. data['topType'] = this.topType;
  202. data['controlType'] = this.controlType;
  203. data['mpa'] = this.mpa;
  204. data['factory'] = this.factory;
  205. data['customNumber'] = this.customNumber;
  206. data['useCompanyCode'] = this.useCompanyCode;
  207. data['devicePositionCode'] = this.devicePositionCode;
  208. data['agency'] = this.agency;
  209. data['reformDate'] = this.reformDate;
  210. data['installDate'] = this.installDate;
  211. data['innerFloor'] = this.innerFloor;
  212. data['annualInspectionDate'] = this.annualInspectionDate;
  213. data['areaCode'] = this.areaCode;
  214. data['deviceId'] = this.deviceId;
  215. data['deviceType'] = this.deviceType;
  216. data['liftStatus'] = this.liftStatus;
  217. data['workerName'] = this.workerName;
  218. data['workerId'] = this.workerId;
  219. return data;
  220. }
  221. }