models.dart 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  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. class GoodsPackageList {
  308. int id;
  309. String name;
  310. GoodsPackageList({this.id, this.name});
  311. factory GoodsPackageList.fromJson(Map<String, dynamic> json) {
  312. return GoodsPackageList(id: json['id'], name: json['name']);
  313. }
  314. }
  315. //创建订单
  316. class CreateOrder {
  317. bool success;
  318. int code;
  319. String msg;
  320. String orderNo;
  321. CreateOrder({this.success, this.code, this.msg, this.orderNo});
  322. factory CreateOrder.fromJson(Map<String, dynamic> json) {
  323. return CreateOrder(
  324. success: json['success'],
  325. code: json['code'],
  326. msg: json['msg'],
  327. orderNo: json['data']['orderNo']);
  328. }
  329. }
  330. //订单详情
  331. class OrderDetailObj {
  332. bool success;
  333. int code;
  334. String msg;
  335. OrderDetailData data;
  336. OrderDetailObj({
  337. this.success,
  338. this.code,
  339. this.msg,
  340. this.data,
  341. });
  342. factory OrderDetailObj.fromJson(Map<String, dynamic> json) {
  343. OrderDetailData tempData = OrderDetailData.fromJson(json['data']);
  344. return OrderDetailObj(
  345. success: json['success'],
  346. code: json['code'],
  347. msg: json['msg'],
  348. data: tempData);
  349. }
  350. }
  351. class OrderDetailData {
  352. String orderNo;
  353. String goods; //商品名称
  354. int goodsAgencyFund; //代收款
  355. int goodsFlatCost; //工本费
  356. int goodsFreight; //运费
  357. int goodsInsurance; //商品保险费
  358. int goodsOtherFees; //其他费用
  359. int goodsPriceProtection; //商品保价
  360. int goodsQuantity; //商品数量
  361. int goodsValue; //商品价值
  362. double goodsWeight; //商品重量
  363. int id; //订单Id
  364. String memo; //备注
  365. int orderStatus; //订单状态 0:代收单,1:已接单,2:配送中,3:已签收,4:拒收
  366. String receiptCompanyAddress; //收件详细地址
  367. String receiptCompanyAreaCode; //收件区码
  368. String receiptCompanyAreaName; //收件区名
  369. String receiptCompanyBankCard; //收件银行卡号
  370. String receiptCompanyCityCode; //收件市码
  371. String receiptCompanyCityName; //收件市名
  372. String receiptCompanyName; //收件公司名称
  373. String receiptCompanyPhone; //收件公司电话
  374. String receiptCompanyProvinceCode; //收件省码
  375. String receiptCompanyProvinceName; //收件省名
  376. String sendCompanyAddress; //发件详细地址
  377. String sendCompanyAreaCode; //发件区码
  378. String sendCompanyAreaName; //发件区名
  379. String sendCompanyBankCard; //发件银行卡号
  380. String sendCompanyCityCode; //发件市码
  381. String sendCompanyCityName; //发件市名
  382. int sendCompanyId; //发件公司id
  383. String sendCompanyName; //发件公司名称
  384. String sendCompanyCode; //发件公司编码
  385. String sendCompanyProvinceCode; //发件公司市码
  386. String sendCompanyProvinceName; //发件公司市名
  387. String sendCompanyPhone;
  388. String senderIdCard; //发件人身份证号
  389. String senderName; //发件人名称
  390. String senderPhone; //发件人电话
  391. OrderDetailData(
  392. {this.orderNo,
  393. this.goods,
  394. this.goodsAgencyFund,
  395. this.goodsFlatCost,
  396. this.goodsFreight,
  397. this.goodsInsurance,
  398. this.goodsOtherFees,
  399. this.goodsPriceProtection,
  400. this.goodsQuantity,
  401. this.goodsValue,
  402. this.goodsWeight,
  403. this.id,
  404. this.memo,
  405. this.orderStatus,
  406. this.receiptCompanyAddress,
  407. this.receiptCompanyAreaCode,
  408. this.receiptCompanyAreaName,
  409. this.receiptCompanyPhone,
  410. this.receiptCompanyBankCard,
  411. this.receiptCompanyCityCode,
  412. this.receiptCompanyCityName,
  413. this.receiptCompanyName,
  414. this.receiptCompanyProvinceCode,
  415. this.receiptCompanyProvinceName,
  416. this.sendCompanyAddress,
  417. this.sendCompanyAreaCode,
  418. this.sendCompanyAreaName,
  419. this.sendCompanyBankCard,
  420. this.sendCompanyCityCode,
  421. this.sendCompanyCityName,
  422. this.sendCompanyId,
  423. this.sendCompanyName,
  424. this.sendCompanyCode,
  425. this.sendCompanyProvinceCode,
  426. this.sendCompanyProvinceName,
  427. this.senderIdCard,
  428. this.senderName,
  429. this.sendCompanyPhone,
  430. this.senderPhone});
  431. factory OrderDetailData.fromJson(Map<String, dynamic> json) {
  432. return OrderDetailData(
  433. orderNo: json['orderNo'],
  434. goods: json['goods'],
  435. goodsAgencyFund: json['goodsAgencyFund'],
  436. goodsFlatCost: json['goodsFlatCost'],
  437. goodsFreight: json['goodsFreight'],
  438. goodsInsurance: json['goodsInsurance'],
  439. goodsOtherFees: json['goodsOtherFees'],
  440. goodsPriceProtection: json['goodsPriceProtection'],
  441. goodsQuantity: json['goodsQuantity'],
  442. goodsValue: json['goodsValue'],
  443. goodsWeight: json['goodsWeight'],
  444. id: json['id'],
  445. memo: json['memo'],
  446. orderStatus: json['orderStatus'],
  447. receiptCompanyAddress: json['receiptCompanyAddress'],
  448. receiptCompanyAreaCode: json['receiptCompanyAreaCode'],
  449. receiptCompanyAreaName: json['receiptCompanyAreaName'],
  450. receiptCompanyBankCard: json['receiptCompanyBankCard'],
  451. receiptCompanyCityCode: json['receiptCompanyCityCode'],
  452. receiptCompanyCityName: json['receiptCompanyCityName'],
  453. receiptCompanyName: json['receiptCompanyName'],
  454. receiptCompanyPhone: json['receiptCompanyPhone'],
  455. receiptCompanyProvinceCode: json['receiptCompanyProvinceCode'],
  456. receiptCompanyProvinceName: json['receiptCompanyProvinceName'],
  457. sendCompanyAddress: json['sendCompanyAddress'],
  458. sendCompanyAreaCode: json['sendCompanyAreaCode'],
  459. sendCompanyAreaName: json['sendCompanyAreaName'],
  460. sendCompanyBankCard: json['sendCompanyBankCard'],
  461. sendCompanyCityCode: json['sendCompanyCityCode'],
  462. sendCompanyCityName: json['sendCompanyCityName'],
  463. sendCompanyId: json['sendCompanyId'],
  464. sendCompanyName: json['sendCompanyName'],
  465. sendCompanyCode: json['sendCompanyCode'],
  466. sendCompanyProvinceCode: json['sendCompanyProvinceCode'],
  467. sendCompanyProvinceName: json['sendCompanyProvinceName'],
  468. senderIdCard: json['senderIdCard'],
  469. senderName: json['senderName'],
  470. senderPhone: json['senderPhone'],
  471. sendCompanyPhone:json['sendCompanyPhone']
  472. );
  473. }
  474. }
  475. //接单对象
  476. class OrderReception {
  477. bool success;
  478. int code;
  479. String msg;
  480. OrderReception({
  481. this.success,
  482. this.code,
  483. this.msg,
  484. });
  485. factory OrderReception.fromJson(Map<String, dynamic> json) {
  486. return OrderReception(
  487. success: json['success'],
  488. code: json['code'],
  489. msg: json['msg'],
  490. );
  491. }
  492. }
  493. //订单管理获取列表
  494. class FromStatusGetOrderObj {
  495. bool success;
  496. int code;
  497. String msg;
  498. FromStatusGetOrderData data;
  499. FromStatusGetOrderObj({this.success, this.code, this.msg, this.data});
  500. factory FromStatusGetOrderObj.fromJson(Map<String, dynamic> json) {
  501. return FromStatusGetOrderObj(
  502. success: json['success'],
  503. code: json['code'],
  504. msg: json['msg'],
  505. data: FromStatusGetOrderData.fromJson(json['data']));
  506. }
  507. }
  508. class FromStatusGetOrderData {
  509. bool hasNextPage;
  510. List<FromStatusGetOrderList> items;
  511. int limit;
  512. int page;
  513. int totalCount;
  514. int totalPage;
  515. FromStatusGetOrderData({
  516. this.hasNextPage,
  517. this.items,
  518. this.limit,
  519. this.page,
  520. this.totalCount,
  521. this.totalPage,
  522. });
  523. factory FromStatusGetOrderData.fromJson(Map<String, dynamic> json) {
  524. List list = json['items'] as List;
  525. List<FromStatusGetOrderList> tempList =
  526. list.map((i) => FromStatusGetOrderList.fromJson(i)).toList();
  527. return FromStatusGetOrderData(
  528. hasNextPage: json['hasNextPage'],
  529. items: tempList,
  530. limit: json['limit'],
  531. page: json['page'],
  532. totalCount: json['totalCount'],
  533. totalPage: json['totalPage'],
  534. );
  535. }
  536. }
  537. class FromStatusGetOrderList {
  538. int goodsAgencyFund;
  539. int goodsFreight;
  540. int goodsQuantity;
  541. int orderStatus;
  542. String orderNo;
  543. String goods;
  544. String receiptCompanyName;
  545. String sendCompanyName;
  546. FromStatusGetOrderList({
  547. this.goodsAgencyFund,
  548. this.goodsFreight,
  549. this.goodsQuantity,
  550. this.orderStatus,
  551. this.orderNo,
  552. this.goods,
  553. this.receiptCompanyName,
  554. this.sendCompanyName,
  555. });
  556. factory FromStatusGetOrderList.fromJson(Map<String, dynamic> json) {
  557. return FromStatusGetOrderList(
  558. goodsAgencyFund: json['goodsAgencyFund'],
  559. goodsFreight: json['goodsFreight'],
  560. goodsQuantity: json['goodsQuantity'],
  561. orderStatus: json['orderStatus'],
  562. orderNo: json['orderNo'],
  563. goods: json['goods'],
  564. receiptCompanyName: json['receiptCompanyName'],
  565. sendCompanyName: json['sendCompanyName'],
  566. );
  567. }
  568. }
  569. //提交改单、作废、寄件、拒收、签收后返回对象
  570. class OrderStatusReturnObj {
  571. bool success;
  572. int code;
  573. String msg;
  574. OrderStatusReturnObj({this.success, this.code, this.msg});
  575. factory OrderStatusReturnObj.fromJson(Map<String, dynamic> json) {
  576. return OrderStatusReturnObj(
  577. success: json['success'],
  578. code: json['code'],
  579. msg: json['msg'],
  580. );
  581. }
  582. }
  583. //模糊匹配订单号返回对象
  584. class LikeOrderNo {
  585. bool success;
  586. int code;
  587. String msg;
  588. List data;
  589. LikeOrderNo({
  590. this.success,
  591. this.code,
  592. this.msg,
  593. this.data,
  594. });
  595. factory LikeOrderNo.fromJson(Map<String, dynamic> json) {
  596. return LikeOrderNo(
  597. success: json['success'],
  598. code: json['code'],
  599. msg: json['msg'],
  600. data: json['data'],
  601. );
  602. }
  603. }
  604. //验证token是否过期返回对象
  605. class CheckToken {
  606. bool success;
  607. int code;
  608. String msg;
  609. String data;
  610. CheckToken({
  611. this.success,
  612. this.code,
  613. this.msg,
  614. this.data,
  615. });
  616. factory CheckToken.fromJson(Map<String, dynamic> json) {
  617. return CheckToken(
  618. success: json['success'],
  619. code: json['code'],
  620. msg: json['msg'],
  621. data: json['data'],
  622. );
  623. }
  624. }
  625. //蓝牙信息缓存对象
  626. class BtInfoList {
  627. List<BtInfoObj> btList;
  628. BtInfoList({this.btList});
  629. factory BtInfoList.fromJson(List json) {
  630. List tempList = json.map((i) => BtInfoObj.fromJson(i)).toList();
  631. return BtInfoList(btList: tempList);
  632. }
  633. }
  634. class BtInfoObj {
  635. String name;
  636. bool showLoadStauts;
  637. bool connectStatus;
  638. BtInfoObj({this.name, this.showLoadStauts, this.connectStatus});
  639. factory BtInfoObj.fromJson(Map<String, dynamic> json) {
  640. return BtInfoObj(
  641. name: json['name'],
  642. showLoadStauts: json['showLoadStauts'],
  643. connectStatus: json['connectStatus'],
  644. );
  645. }
  646. }
  647. //根据公司id获取线路
  648. class CompanyOfLine {
  649. bool success;
  650. int code;
  651. String msg;
  652. List<CompanyOfLineList> data;
  653. CompanyOfLine({
  654. this.success,
  655. this.code,
  656. this.msg,
  657. this.data
  658. });
  659. factory CompanyOfLine.fromJson(Map<String,dynamic> json){
  660. var list = json['data'] as List;
  661. List tempList = list.map((i) => CompanyOfLineList.fromJson(i)).toList();
  662. return CompanyOfLine(
  663. success:json['success'],
  664. code:json['code'],
  665. msg:json['msg'],
  666. data:tempList,
  667. );
  668. }
  669. }
  670. class CompanyOfLineList {
  671. int lineId;
  672. String lineName;
  673. int uzerCompanyId;
  674. bool checkedStatus = false;
  675. CompanyOfLineList({
  676. this.lineId,
  677. this.lineName,
  678. this.uzerCompanyId,
  679. });
  680. factory CompanyOfLineList.fromJson(Map<String, dynamic> json) {
  681. return CompanyOfLineList(
  682. lineId:json['lineId'],
  683. lineName:json['lineName'],
  684. uzerCompanyId:json['uzerCompanyId'],
  685. );
  686. }
  687. }