models.dart 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. //登录
  2. class Login {
  3. bool success;
  4. int code;
  5. String msg;
  6. LoginMap data;
  7. Login({
  8. this.success,
  9. this.code,
  10. this.msg,
  11. this.data,
  12. });
  13. factory Login.fromJson(Map<String, dynamic> json) {
  14. LoginMap tempData = LoginMap.fromJson(json['data']);
  15. return Login(
  16. success: json['success'],
  17. code: json['code'],
  18. msg: json['msg'],
  19. data: tempData);
  20. }
  21. }
  22. class LoginMap {
  23. String avatarUrl;
  24. String nickName;
  25. int roleType;
  26. String userId;
  27. int status;
  28. String token;
  29. String stationId;
  30. LoginMap(
  31. {this.userId,
  32. this.avatarUrl,
  33. this.nickName,
  34. this.roleType,
  35. this.status,
  36. this.token,
  37. this.stationId});
  38. factory LoginMap.fromJson(Map<String, dynamic> json) {
  39. return LoginMap(
  40. avatarUrl: json['avatarUrl'],
  41. nickName: json['nickName'],
  42. roleType: json['roleType'],
  43. userId: json['userId'],
  44. status: json['status'],
  45. token: json['token'],
  46. stationId: json['stationId'].toString());
  47. }
  48. }
  49. //接单页列表
  50. class OrderListObj {
  51. bool success;
  52. int code;
  53. String msg;
  54. OrderListData data;
  55. OrderListObj({this.success, this.code, this.msg, this.data});
  56. factory OrderListObj.fromJson(Map<String, dynamic> json) {
  57. return OrderListObj(
  58. success: json['success'],
  59. code: json['code'],
  60. msg: json['msg'],
  61. data: OrderListData.fromJson(json['data']));
  62. }
  63. }
  64. class OrderListData {
  65. bool hasNextPage;
  66. List<OrderList> items;
  67. int limit;
  68. int page;
  69. int totalCount;
  70. int totalPage;
  71. OrderListData(
  72. {this.hasNextPage,
  73. this.items,
  74. this.limit,
  75. this.page,
  76. this.totalCount,
  77. this.totalPage});
  78. factory OrderListData.fromJson(Map<String, dynamic> json) {
  79. List list = json['items'] as List;
  80. List<OrderList> tempOrderList =
  81. list.map((i) => OrderList.fromJson(i)).toList();
  82. return OrderListData(
  83. hasNextPage: json['hasNextPage'],
  84. items: tempOrderList,
  85. limit: json['limit'],
  86. page: json['page'],
  87. totalCount: json['totalCount'],
  88. totalPage: json['totalPage']);
  89. }
  90. }
  91. class OrderList {
  92. String orderNo;
  93. int createTime;
  94. String goods;
  95. int goodsQuantity;
  96. String receiptCompanyAddress;
  97. String receiptCompanyName;
  98. String receiptCompanyPhone;
  99. String sendCompanyAddress;
  100. String sendCompanyName;
  101. String sendCompanyPhone;
  102. OrderList(
  103. {this.orderNo,
  104. this.createTime,
  105. this.goods,
  106. this.goodsQuantity,
  107. this.receiptCompanyAddress,
  108. this.receiptCompanyName,
  109. this.receiptCompanyPhone,
  110. this.sendCompanyAddress,
  111. this.sendCompanyName,
  112. this.sendCompanyPhone});
  113. factory OrderList.fromJson(Map<String, dynamic> json) {
  114. return OrderList(
  115. orderNo: json['orderNo'],
  116. createTime: json['createTime'],
  117. goods: json['goods'],
  118. goodsQuantity: json['goodsQuantity'],
  119. receiptCompanyAddress: json['receiptCompanyAddress'],
  120. receiptCompanyName: json['receiptCompanyName'],
  121. receiptCompanyPhone: json['receiptCompanyPhone'],
  122. sendCompanyAddress: json['sendCompanyAddress'],
  123. sendCompanyName: json['sendCompanyName'],
  124. sendCompanyPhone: json['sendCompanyPhone']);
  125. }
  126. }
  127. //获取站点
  128. class Station {
  129. bool success;
  130. int code;
  131. String msg;
  132. List<StationList> data;
  133. Station({this.success, this.code, this.msg, this.data});
  134. factory Station.fromJson(Map<String, dynamic> json) {
  135. List list = json['data'] as List;
  136. print(list.toString());
  137. List<StationList> tempList =
  138. list.map((i) => StationList.fromJson(i)).toList();
  139. return Station(
  140. success: json['success'],
  141. code: json['code'],
  142. msg: json['msg'],
  143. data: tempList);
  144. }
  145. }
  146. class StationList {
  147. String code;
  148. int id;
  149. String name;
  150. int stationStatus;
  151. int status;
  152. StationList({this.code, this.id, this.name, this.stationStatus, this.status});
  153. factory StationList.fromJson(Map<String, dynamic> json) {
  154. return StationList(
  155. code: json['code'],
  156. id: json['id'],
  157. name: json['name'],
  158. stationStatus: json['stationStatus'],
  159. status: json['status']);
  160. }
  161. }
  162. //站点线路
  163. class StationLine {
  164. bool success;
  165. int code;
  166. String msg;
  167. List<LineObj> data;
  168. StationLine({this.success, this.code, this.msg, this.data});
  169. factory StationLine.fromJson(Map<String, dynamic> json) {
  170. var list = json['data'] as List;
  171. List<LineObj> tempList = list.map((i) => LineObj.fromJson(i)).toList();
  172. return StationLine(
  173. success: json['success'],
  174. code: json['code'],
  175. msg: json['msg'],
  176. data: tempList);
  177. }
  178. }
  179. class LineObj {
  180. String code;
  181. int id;
  182. String name;
  183. LineObj({this.code, this.name, this.id});
  184. factory LineObj.fromJson(Map<String, dynamic> json) {
  185. return LineObj(code: json['code'], id: json['id'], name: json['name']);
  186. }
  187. }
  188. //修改密码
  189. class UpdataPasswrod {
  190. bool success;
  191. int code;
  192. String msg;
  193. String data;
  194. UpdataPasswrod({this.success, this.code, this.msg, this.data});
  195. factory UpdataPasswrod.fromJson(Map<String, dynamic> json) {
  196. return UpdataPasswrod(
  197. success: json['success'],
  198. code: json['code'],
  199. msg: json['msg'],
  200. data: json['data']);
  201. }
  202. }
  203. //手机号模糊匹配
  204. class LikePhone {
  205. bool success;
  206. int code;
  207. String msg;
  208. List<LikePhoneList> data;
  209. LikePhone({this.success, this.code, this.msg, this.data});
  210. factory LikePhone.fromJson(Map<String, dynamic> json) {
  211. List list = json['data'] as List;
  212. List<LikePhoneList> tempList =
  213. list.map((i) => LikePhoneList.fromJson(i)).toList();
  214. return LikePhone(
  215. success: json['success'],
  216. code: json['code'],
  217. msg: json['msg'],
  218. data: tempList);
  219. }
  220. }
  221. class LikePhoneList {
  222. String address;
  223. String areaCode;
  224. String areaName;
  225. String cityCode;
  226. String cityName;
  227. String companyCode;
  228. String companyName;
  229. String companyPhone;
  230. int id;
  231. String provinceCode;
  232. String provinceName;
  233. String uzerPhone;
  234. LikePhoneList(
  235. {this.address,
  236. this.areaCode,
  237. this.areaName,
  238. this.cityCode,
  239. this.cityName,
  240. this.companyCode,
  241. this.companyName,
  242. this.companyPhone,
  243. this.id,
  244. this.provinceCode,
  245. this.provinceName,
  246. this.uzerPhone});
  247. factory LikePhoneList.fromJson(Map<String, dynamic> json) {
  248. return LikePhoneList(
  249. address: json['address'],
  250. areaCode: json['areaCode'],
  251. areaName: json['areaName'],
  252. cityCode: json['cityCode'],
  253. cityName: json['cityName'],
  254. companyCode: json['companyCode'],
  255. companyName: json['companyName'],
  256. companyPhone: json['companyPhone'],
  257. id: json['id'],
  258. provinceCode: json['provinceCode'],
  259. provinceName: json['provinceName'],
  260. uzerPhone: json['uzerPhone']);
  261. }
  262. }
  263. //商品类别列表
  264. class GoodsCategory {
  265. bool success;
  266. int code;
  267. String msg;
  268. List<GoodCategoryList> data;
  269. GoodsCategory({this.success, this.code, this.msg, this.data});
  270. factory GoodsCategory.fromJson(Map<String, dynamic> json) {
  271. List list = json['data'] as List;
  272. List<GoodCategoryList> tempList =
  273. list.map((i) => GoodCategoryList.fromJson(i)).toList();
  274. return GoodsCategory(
  275. success: json['success'],
  276. code: json['code'],
  277. msg: json['msg'],
  278. data: tempList);
  279. }
  280. }
  281. class GoodCategoryList {
  282. int id;
  283. String name;
  284. GoodCategoryList({this.id, this.name});
  285. factory GoodCategoryList.fromJson(Map<String, dynamic> json) {
  286. return GoodCategoryList(id: json['id'], name: json['name']);
  287. }
  288. }
  289. //商品包装类别列表
  290. class GoodsPackage {
  291. bool success;
  292. int code;
  293. String msg;
  294. List<GoodsPackageList> data;
  295. GoodsPackage({this.success, this.code, this.msg, this.data});
  296. factory GoodsPackage.fromJson(Map<String, dynamic> json) {
  297. List list = json['data'] as List;
  298. List<GoodsPackageList> tempList =
  299. list.map((i) => GoodsPackageList.fromJson(i)).toList();
  300. return GoodsPackage(
  301. success: json['success'],
  302. code: json['code'],
  303. msg: json['msg'],
  304. data: tempList
  305. );
  306. }
  307. }
  308. class GoodsPackageList {
  309. int id;
  310. String name;
  311. GoodsPackageList({this.id, this.name});
  312. factory GoodsPackageList.fromJson(Map<String, dynamic> json) {
  313. return GoodsPackageList(id: json['id'], name: json['name']);
  314. }
  315. }
  316. //创建订单
  317. class CreateOrder {
  318. bool success;
  319. int code;
  320. String msg;
  321. String orderNo;
  322. CreateOrder({this.success, this.code, this.msg, this.orderNo});
  323. factory CreateOrder.fromJson(Map<String, dynamic> json) {
  324. return CreateOrder(
  325. success: json['success'],
  326. code: json['code'],
  327. msg: json['msg'],
  328. orderNo: json['data']['orderNo']);
  329. }
  330. }
  331. //订单详情
  332. class OrderDetailObj {
  333. bool success;
  334. int code;
  335. String msg;
  336. OrderDetailData data;
  337. OrderDetailObj({
  338. this.success,
  339. this.code,
  340. this.msg,
  341. this.data,
  342. });
  343. factory OrderDetailObj.fromJson(Map<String, dynamic> json) {
  344. OrderDetailData tempData = OrderDetailData.fromJson(json['data']);
  345. return OrderDetailObj(
  346. success: json['success'],
  347. code: json['code'],
  348. msg: json['msg'],
  349. data: tempData);
  350. }
  351. }
  352. class OrderDetailData {
  353. String orderNo;
  354. String goods; //商品名称
  355. int goodsAgencyFund; //代收款
  356. int goodsFlatCost; //工本费
  357. int goodsFreight; //运费
  358. int goodsInsurance; //商品保险费
  359. int goodsOtherFees; //其他费用
  360. int goodsPriceProtection; //商品保价
  361. int goodsQuantity; //商品数量
  362. int goodsValue; //商品价值
  363. double goodsWeight; //商品重量
  364. int id; //订单Id
  365. String memo; //备注
  366. int orderStatus; //订单状态 0:代收单,1:已接单,2:配送中,3:已签收,4:拒收
  367. String receiptCompanyAddress; //收件详细地址
  368. String receiptCompanyAreaCode; //收件区码
  369. String receiptCompanyAreaName; //收件区名
  370. String receiptCompanyBankCard; //收件银行卡号
  371. String receiptCompanyCityCode; //收件市码
  372. String receiptCompanyCityName; //收件市名
  373. String receiptCompanyName; //收件公司名称
  374. String receiptCompanyPhone; //收件公司电话
  375. String receiptCompanyProvinceCode; //收件省码
  376. String receiptCompanyProvinceName; //收件省名
  377. String sendCompanyAddress; //发件详细地址
  378. String sendCompanyAreaCode; //发件区码
  379. String sendCompanyAreaName; //发件区名
  380. String sendCompanyBankCard; //发件银行卡号
  381. String sendCompanyCityCode; //发件市码
  382. String sendCompanyCityName; //发件市名
  383. int sendCompanyId; //发件公司id
  384. String sendCompanyName; //发件公司名称
  385. String sendCompanyCode; //发件公司编码
  386. String sendCompanyProvinceCode; //发件公司市码
  387. String sendCompanyProvinceName; //发件公司市名
  388. String sendCompanyPhone;
  389. String senderIdCard; //发件人身份证号
  390. String senderName; //发件人名称
  391. String senderPhone; //发件人电话
  392. OrderDetailData(
  393. {this.orderNo,
  394. this.goods,
  395. this.goodsAgencyFund,
  396. this.goodsFlatCost,
  397. this.goodsFreight,
  398. this.goodsInsurance,
  399. this.goodsOtherFees,
  400. this.goodsPriceProtection,
  401. this.goodsQuantity,
  402. this.goodsValue,
  403. this.goodsWeight,
  404. this.id,
  405. this.memo,
  406. this.orderStatus,
  407. this.receiptCompanyAddress,
  408. this.receiptCompanyAreaCode,
  409. this.receiptCompanyAreaName,
  410. this.receiptCompanyPhone,
  411. this.receiptCompanyBankCard,
  412. this.receiptCompanyCityCode,
  413. this.receiptCompanyCityName,
  414. this.receiptCompanyName,
  415. this.receiptCompanyProvinceCode,
  416. this.receiptCompanyProvinceName,
  417. this.sendCompanyAddress,
  418. this.sendCompanyAreaCode,
  419. this.sendCompanyAreaName,
  420. this.sendCompanyBankCard,
  421. this.sendCompanyCityCode,
  422. this.sendCompanyCityName,
  423. this.sendCompanyId,
  424. this.sendCompanyName,
  425. this.sendCompanyCode,
  426. this.sendCompanyProvinceCode,
  427. this.sendCompanyProvinceName,
  428. this.senderIdCard,
  429. this.senderName,
  430. this.sendCompanyPhone,
  431. this.senderPhone});
  432. factory OrderDetailData.fromJson(Map<String, dynamic> json) {
  433. return OrderDetailData(
  434. orderNo: json['orderNo'],
  435. goods: json['goods'],
  436. goodsAgencyFund: json['goodsAgencyFund'],
  437. goodsFlatCost: json['goodsFlatCost'],
  438. goodsFreight: json['goodsFreight'],
  439. goodsInsurance: json['goodsInsurance'],
  440. goodsOtherFees: json['goodsOtherFees'],
  441. goodsPriceProtection: json['goodsPriceProtection'],
  442. goodsQuantity: json['goodsQuantity'],
  443. goodsValue: json['goodsValue'],
  444. goodsWeight: json['goodsWeight'],
  445. id: json['id'],
  446. memo: json['memo'],
  447. orderStatus: json['orderStatus'],
  448. receiptCompanyAddress: json['receiptCompanyAddress'],
  449. receiptCompanyAreaCode: json['receiptCompanyAreaCode'],
  450. receiptCompanyAreaName: json['receiptCompanyAreaName'],
  451. receiptCompanyBankCard: json['receiptCompanyBankCard'],
  452. receiptCompanyCityCode: json['receiptCompanyCityCode'],
  453. receiptCompanyCityName: json['receiptCompanyCityName'],
  454. receiptCompanyName: json['receiptCompanyName'],
  455. receiptCompanyPhone: json['receiptCompanyPhone'],
  456. receiptCompanyProvinceCode: json['receiptCompanyProvinceCode'],
  457. receiptCompanyProvinceName: json['receiptCompanyProvinceName'],
  458. sendCompanyAddress: json['sendCompanyAddress'],
  459. sendCompanyAreaCode: json['sendCompanyAreaCode'],
  460. sendCompanyAreaName: json['sendCompanyAreaName'],
  461. sendCompanyBankCard: json['sendCompanyBankCard'],
  462. sendCompanyCityCode: json['sendCompanyCityCode'],
  463. sendCompanyCityName: json['sendCompanyCityName'],
  464. sendCompanyId: json['sendCompanyId'],
  465. sendCompanyName: json['sendCompanyName'],
  466. sendCompanyCode: json['sendCompanyCode'],
  467. sendCompanyProvinceCode: json['sendCompanyProvinceCode'],
  468. sendCompanyProvinceName: json['sendCompanyProvinceName'],
  469. senderIdCard: json['senderIdCard'],
  470. senderName: json['senderName'],
  471. senderPhone: json['senderPhone'],
  472. sendCompanyPhone:json['sendCompanyPhone']
  473. );
  474. }
  475. }
  476. //接单对象
  477. class OrderReception {
  478. bool success;
  479. int code;
  480. String msg;
  481. OrderReception({
  482. this.success,
  483. this.code,
  484. this.msg,
  485. });
  486. factory OrderReception.fromJson(Map<String, dynamic> json) {
  487. return OrderReception(
  488. success: json['success'],
  489. code: json['code'],
  490. msg: json['msg'],
  491. );
  492. }
  493. }
  494. //订单管理获取列表
  495. class FromStatusGetOrderObj {
  496. bool success;
  497. int code;
  498. String msg;
  499. FromStatusGetOrderData data;
  500. FromStatusGetOrderObj({this.success, this.code, this.msg, this.data});
  501. factory FromStatusGetOrderObj.fromJson(Map<String, dynamic> json) {
  502. return FromStatusGetOrderObj(
  503. success: json['success'],
  504. code: json['code'],
  505. msg: json['msg'],
  506. data: FromStatusGetOrderData.fromJson(json['data']));
  507. }
  508. }
  509. class FromStatusGetOrderData {
  510. bool hasNextPage;
  511. List<FromStatusGetOrderList> items;
  512. int limit;
  513. int page;
  514. int totalCount;
  515. int totalPage;
  516. FromStatusGetOrderData({
  517. this.hasNextPage,
  518. this.items,
  519. this.limit,
  520. this.page,
  521. this.totalCount,
  522. this.totalPage,
  523. });
  524. factory FromStatusGetOrderData.fromJson(Map<String, dynamic> json) {
  525. List list = json['items'] as List;
  526. List<FromStatusGetOrderList> tempList =
  527. list.map((i) => FromStatusGetOrderList.fromJson(i)).toList();
  528. return FromStatusGetOrderData(
  529. hasNextPage: json['hasNextPage'],
  530. items: tempList,
  531. limit: json['limit'],
  532. page: json['page'],
  533. totalCount: json['totalCount'],
  534. totalPage: json['totalPage'],
  535. );
  536. }
  537. }
  538. class FromStatusGetOrderList {
  539. int goodsAgencyFund;
  540. int goodsFreight;
  541. int goodsQuantity;
  542. int orderStatus;
  543. String orderNo;
  544. String goods;
  545. String receiptCompanyName;
  546. String sendCompanyName;
  547. FromStatusGetOrderList({
  548. this.goodsAgencyFund,
  549. this.goodsFreight,
  550. this.goodsQuantity,
  551. this.orderStatus,
  552. this.orderNo,
  553. this.goods,
  554. this.receiptCompanyName,
  555. this.sendCompanyName,
  556. });
  557. factory FromStatusGetOrderList.fromJson(Map<String, dynamic> json) {
  558. return FromStatusGetOrderList(
  559. goodsAgencyFund: json['goodsAgencyFund'],
  560. goodsFreight: json['goodsFreight'],
  561. goodsQuantity: json['goodsQuantity'],
  562. orderStatus: json['orderStatus'],
  563. orderNo: json['orderNo'],
  564. goods: json['goods'],
  565. receiptCompanyName: json['receiptCompanyName'],
  566. sendCompanyName: json['sendCompanyName'],
  567. );
  568. }
  569. }
  570. //提交改单、作废、寄件、拒收、签收后返回对象
  571. class OrderStatusReturnObj {
  572. bool success;
  573. int code;
  574. String msg;
  575. OrderStatusReturnObj({this.success, this.code, this.msg});
  576. factory OrderStatusReturnObj.fromJson(Map<String, dynamic> json) {
  577. return OrderStatusReturnObj(
  578. success: json['success'],
  579. code: json['code'],
  580. msg: json['msg'],
  581. );
  582. }
  583. }
  584. //模糊匹配订单号返回对象
  585. class LikeOrderNo {
  586. bool success;
  587. int code;
  588. String msg;
  589. List data;
  590. LikeOrderNo({
  591. this.success,
  592. this.code,
  593. this.msg,
  594. this.data,
  595. });
  596. factory LikeOrderNo.fromJson(Map<String, dynamic> json) {
  597. return LikeOrderNo(
  598. success: json['success'],
  599. code: json['code'],
  600. msg: json['msg'],
  601. data: json['data'],
  602. );
  603. }
  604. }
  605. //验证token是否过期返回对象
  606. class CheckToken {
  607. bool success;
  608. int code;
  609. String msg;
  610. String data;
  611. CheckToken({
  612. this.success,
  613. this.code,
  614. this.msg,
  615. this.data,
  616. });
  617. factory CheckToken.fromJson(Map<String, dynamic> json) {
  618. return CheckToken(
  619. success: json['success'],
  620. code: json['code'],
  621. msg: json['msg'],
  622. data: json['data'],
  623. );
  624. }
  625. }
  626. //蓝牙信息缓存对象
  627. class BtInfoList {
  628. List<BtInfoObj> btList;
  629. BtInfoList({this.btList});
  630. factory BtInfoList.fromJson(List json) {
  631. List tempList = json.map((i) => BtInfoObj.fromJson(i)).toList();
  632. return BtInfoList(btList: tempList);
  633. }
  634. }
  635. class BtInfoObj {
  636. String name;
  637. bool showLoadStauts;
  638. bool connectStatus;
  639. BtInfoObj({this.name, this.showLoadStauts, this.connectStatus});
  640. factory BtInfoObj.fromJson(Map<String, dynamic> json) {
  641. return BtInfoObj(
  642. name: json['name'],
  643. showLoadStauts: json['showLoadStauts'],
  644. connectStatus: json['connectStatus'],
  645. );
  646. }
  647. }
  648. //根据公司id获取线路
  649. class CompanyOfLine {
  650. bool success;
  651. int code;
  652. String msg;
  653. List<CompanyOfLineList> data;
  654. CompanyOfLine({
  655. this.success,
  656. this.code,
  657. this.msg,
  658. this.data
  659. });
  660. factory CompanyOfLine.fromJson(Map<String,dynamic> json){
  661. var list = json['data'] as List;
  662. List tempList = list.map((i) => CompanyOfLineList.fromJson(i)).toList();
  663. return CompanyOfLine(
  664. success:json['success'],
  665. code:json['code'],
  666. msg:json['msg'],
  667. data:tempList,
  668. );
  669. }
  670. }
  671. class CompanyOfLineList {
  672. int lineId;
  673. String lineName;
  674. int uzerCompanyId;
  675. bool checkedStatus = false;
  676. CompanyOfLineList({
  677. this.lineId,
  678. this.lineName,
  679. this.uzerCompanyId,
  680. });
  681. factory CompanyOfLineList.fromJson(Map<String, dynamic> json) {
  682. return CompanyOfLineList(
  683. lineId:json['lineId'],
  684. lineName:json['lineName'],
  685. uzerCompanyId:json['uzerCompanyId'],
  686. );
  687. }
  688. }