pda_patrol_location_list_entity.dart 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. class PdaPatrolLocationList {
  2. int? _code;
  3. String? _msg;
  4. List<Data>? _data;
  5. PdaPatrolLocationList({int? code, String? msg, List<Data>? data}) {
  6. if (code != null) {
  7. this._code = code;
  8. }
  9. if (msg != null) {
  10. this._msg = msg;
  11. }
  12. if (data != null) {
  13. this._data = data;
  14. }
  15. }
  16. int? get code => _code;
  17. set code(int? code) => _code = code;
  18. String? get msg => _msg;
  19. set msg(String? msg) => _msg = msg;
  20. List<Data>? get data => _data;
  21. set data(List<Data>? data) => _data = data;
  22. PdaPatrolLocationList.fromJson(Map<String, dynamic> json) {
  23. _code = json['code'];
  24. _msg = json['msg'];
  25. if (json['data'] != null) {
  26. _data = <Data>[];
  27. json['data'].forEach((v) {
  28. _data!.add(new Data.fromJson(v));
  29. });
  30. }
  31. }
  32. Map<String, dynamic> toJson() {
  33. final Map<String, dynamic> data = new Map<String, dynamic>();
  34. data['code'] = this._code;
  35. data['msg'] = this._msg;
  36. if (this._data != null) {
  37. data['data'] = this._data!.map((v) => v.toJson()).toList();
  38. }
  39. return data;
  40. }
  41. }
  42. class Data {
  43. String? _id;
  44. String? _created;
  45. String? _createTime;
  46. Null? _updated;
  47. String? _updateTime;
  48. String? _deckId;
  49. String? _deckName;
  50. String? _locationId;
  51. String? _locationName;
  52. String? _locationPerson;
  53. String? _nfcNo;
  54. int? _locationSort;
  55. String? _platformId;
  56. Null? _advert;
  57. Null? _smallPlatform;
  58. Null? _patrolRecord;
  59. Null? _advertList;
  60. String? _ogfName;
  61. Data(
  62. {String? id,
  63. String? created,
  64. String? createTime,
  65. Null? updated,
  66. String? updateTime,
  67. String? deckId,
  68. String? deckName,
  69. String? locationId,
  70. String? locationName,
  71. String? locationPerson,
  72. String? nfcNo,
  73. int? locationSort,
  74. String? platformId,
  75. Null? advert,
  76. Null? smallPlatform,
  77. Null? patrolRecord,
  78. Null? advertList,
  79. String? ogfName}) {
  80. if (id != null) {
  81. this._id = id;
  82. }
  83. if (created != null) {
  84. this._created = created;
  85. }
  86. if (createTime != null) {
  87. this._createTime = createTime;
  88. }
  89. if (updated != null) {
  90. this._updated = updated;
  91. }
  92. if (updateTime != null) {
  93. this._updateTime = updateTime;
  94. }
  95. if (deckId != null) {
  96. this._deckId = deckId;
  97. }
  98. if (deckName != null) {
  99. this._deckName = deckName;
  100. }
  101. if (locationId != null) {
  102. this._locationId = locationId;
  103. }
  104. if (locationName != null) {
  105. this._locationName = locationName;
  106. }
  107. if (locationPerson != null) {
  108. this._locationPerson = locationPerson;
  109. }
  110. if (nfcNo != null) {
  111. this._nfcNo = nfcNo;
  112. }
  113. if (locationSort != null) {
  114. this._locationSort = locationSort;
  115. }
  116. if (platformId != null) {
  117. this._platformId = platformId;
  118. }
  119. if (advert != null) {
  120. this._advert = advert;
  121. }
  122. if (smallPlatform != null) {
  123. this._smallPlatform = smallPlatform;
  124. }
  125. if (patrolRecord != null) {
  126. this._patrolRecord = patrolRecord;
  127. }
  128. if (advertList != null) {
  129. this._advertList = advertList;
  130. }
  131. if (ogfName != null) {
  132. this._ogfName = ogfName;
  133. }
  134. }
  135. String? get id => _id;
  136. set id(String? id) => _id = id;
  137. String? get created => _created;
  138. set created(String? created) => _created = created;
  139. String? get createTime => _createTime;
  140. set createTime(String? createTime) => _createTime = createTime;
  141. Null? get updated => _updated;
  142. set updated(Null? updated) => _updated = updated;
  143. String? get updateTime => _updateTime;
  144. set updateTime(String? updateTime) => _updateTime = updateTime;
  145. String? get deckId => _deckId;
  146. set deckId(String? deckId) => _deckId = deckId;
  147. String? get deckName => _deckName;
  148. set deckName(String? deckName) => _deckName = deckName;
  149. String? get locationId => _locationId;
  150. set locationId(String? locationId) => _locationId = locationId;
  151. String? get locationName => _locationName;
  152. set locationName(String? locationName) => _locationName = locationName;
  153. String? get locationPerson => _locationPerson;
  154. set locationPerson(String? locationPerson) =>
  155. _locationPerson = locationPerson;
  156. String? get nfcNo => _nfcNo;
  157. set nfcNo(String? nfcNo) => _nfcNo = nfcNo;
  158. int? get locationSort => _locationSort;
  159. set locationSort(int? locationSort) => _locationSort = locationSort;
  160. String? get platformId => _platformId;
  161. set platformId(String? platformId) => _platformId = platformId;
  162. Null? get advert => _advert;
  163. set advert(Null? advert) => _advert = advert;
  164. Null? get smallPlatform => _smallPlatform;
  165. set smallPlatform(Null? smallPlatform) => _smallPlatform = smallPlatform;
  166. Null? get patrolRecord => _patrolRecord;
  167. set patrolRecord(Null? patrolRecord) => _patrolRecord = patrolRecord;
  168. Null? get advertList => _advertList;
  169. set advertList(Null? advertList) => _advertList = advertList;
  170. String? get ogfName => _ogfName;
  171. set ogfName(String? ogfName) => _ogfName = ogfName;
  172. Data.fromJson(Map<String, dynamic> json) {
  173. _id = json['id'];
  174. _created = json['created'];
  175. _createTime = json['createTime'];
  176. _updated = json['updated'];
  177. _updateTime = json['updateTime'];
  178. _deckId = json['deckId'];
  179. _deckName = json['deckName'];
  180. _locationId = json['locationId'];
  181. _locationName = json['locationName'];
  182. _locationPerson = json['locationPerson'];
  183. _nfcNo = json['nfcNo'];
  184. _locationSort = json['locationSort'];
  185. _platformId = json['platformId'];
  186. _advert = json['advert'];
  187. _smallPlatform = json['smallPlatform'];
  188. _patrolRecord = json['patrolRecord'];
  189. _advertList = json['advertList'];
  190. _ogfName = json['ogfName'];
  191. }
  192. Map<String, dynamic> toJson() {
  193. final Map<String, dynamic> data = new Map<String, dynamic>();
  194. data['id'] = this._id;
  195. data['created'] = this._created;
  196. data['createTime'] = this._createTime;
  197. data['updated'] = this._updated;
  198. data['updateTime'] = this._updateTime;
  199. data['deckId'] = this._deckId;
  200. data['deckName'] = this._deckName;
  201. data['locationId'] = this._locationId;
  202. data['locationName'] = this._locationName;
  203. data['locationPerson'] = this._locationPerson;
  204. data['nfcNo'] = this._nfcNo;
  205. data['locationSort'] = this._locationSort;
  206. data['platformId'] = this._platformId;
  207. data['advert'] = this._advert;
  208. data['smallPlatform'] = this._smallPlatform;
  209. data['patrolRecord'] = this._patrolRecord;
  210. data['advertList'] = this._advertList;
  211. data['ogfName'] = this._ogfName;
  212. return data;
  213. }
  214. }