models.dart 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  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. List stationIds;
  30. LoginMap(
  31. {this.userId,
  32. this.avatarUrl,
  33. this.nickName,
  34. this.roleType,
  35. this.status,
  36. this.token,
  37. this.stationIds});
  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. stationIds: json['stationIds']);
  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 receiptCompanyProvinceName;
  100. String receiptCompanyCityName;
  101. String receiptCompanyAreaName;
  102. String sendCompanyAddress;
  103. String sendCompanyName;
  104. String sendCompanyPhone;
  105. String sendCompanyProvinceName;
  106. String sendCompanyCityName;
  107. String sendCompanyAreaName;
  108. OrderList(
  109. {this.orderNo,
  110. this.createTime,
  111. this.goods,
  112. this.goodsQuantity,
  113. this.receiptCompanyAddress,
  114. this.receiptCompanyName,
  115. this.receiptCompanyPhone,
  116. this.receiptCompanyProvinceName,
  117. this.receiptCompanyCityName,
  118. this.receiptCompanyAreaName,
  119. this.sendCompanyAddress,
  120. this.sendCompanyName,
  121. this.sendCompanyPhone,
  122. this.sendCompanyProvinceName,
  123. this.sendCompanyCityName,
  124. this.sendCompanyAreaName,
  125. });
  126. factory OrderList.fromJson(Map<String, dynamic> json) {
  127. return OrderList(
  128. orderNo: json['orderNo'] ?? '',
  129. createTime: json['createTime'] ?? '',
  130. goods: json['goods'] ?? '',
  131. goodsQuantity: json['goodsQuantity'] ?? '',
  132. receiptCompanyAddress: json['receiptCompanyAddress'] ?? '',
  133. receiptCompanyName: json['receiptCompanyName'] ?? '',
  134. receiptCompanyPhone: json['receiptCompanyPhone'] ?? '',
  135. receiptCompanyProvinceName:json['receiptCompanyProvinceName'] ?? '',
  136. receiptCompanyCityName:json['receiptCompanyCityName'] ?? '',
  137. receiptCompanyAreaName:json['receiptCompanyAreaName'] ?? '',
  138. sendCompanyAddress: json['sendCompanyAddress'] ?? '',
  139. sendCompanyName: json['sendCompanyName'] ?? '',
  140. sendCompanyPhone: json['sendCompanyPhone'] ?? '',
  141. sendCompanyProvinceName:json['sendCompanyProvinceName'] ?? '',
  142. sendCompanyCityName:json['sendCompanyCityName'] ?? '',
  143. sendCompanyAreaName:json['sendCompanyAreaName'] ?? '',
  144. );
  145. }
  146. }
  147. //获取站点
  148. class Station {
  149. bool success;
  150. int code;
  151. String msg;
  152. List<StationList> data;
  153. Station({this.success, this.code, this.msg, this.data});
  154. factory Station.fromJson(Map<String, dynamic> json) {
  155. List list = json['data'] as List;
  156. print(list.toString());
  157. List<StationList> tempList =
  158. list.map((i) => StationList.fromJson(i)).toList();
  159. return Station(
  160. success: json['success'],
  161. code: json['code'],
  162. msg: json['msg'],
  163. data: tempList);
  164. }
  165. }
  166. class StationList {
  167. String code;
  168. int id;
  169. String name;
  170. int stationStatus;
  171. int status;
  172. StationList({this.code, this.id, this.name, this.stationStatus, this.status});
  173. factory StationList.fromJson(Map<String, dynamic> json) {
  174. return StationList(
  175. code: json['code'],
  176. id: json['id'],
  177. name: json['name'],
  178. stationStatus: json['stationStatus'],
  179. status: json['status']);
  180. }
  181. }
  182. //站点线路
  183. class StationLine {
  184. bool success;
  185. int code;
  186. String msg;
  187. List<LineObj> data;
  188. StationLine({this.success, this.code, this.msg, this.data});
  189. factory StationLine.fromJson(Map<String, dynamic> json) {
  190. var list = json['data'] as List;
  191. List<LineObj> tempList = list.map((i) => LineObj.fromJson(i)).toList();
  192. return StationLine(
  193. success: json['success'],
  194. code: json['code'],
  195. msg: json['msg'],
  196. data: tempList);
  197. }
  198. }
  199. class LineObj {
  200. String code;
  201. int id;
  202. String name;
  203. LineObj({this.code, this.name, this.id});
  204. factory LineObj.fromJson(Map<String, dynamic> json) {
  205. return LineObj(code: json['code'], id: json['id'], name: json['name']);
  206. }
  207. }
  208. //修改密码
  209. class UpdataPasswrod {
  210. bool success;
  211. int code;
  212. String msg;
  213. String data;
  214. UpdataPasswrod({this.success, this.code, this.msg, this.data});
  215. factory UpdataPasswrod.fromJson(Map<String, dynamic> json) {
  216. return UpdataPasswrod(
  217. success: json['success'],
  218. code: json['code'],
  219. msg: json['msg'],
  220. data: json['data']);
  221. }
  222. }
  223. //手机号模糊匹配
  224. class LikePhone {
  225. bool success;
  226. int code;
  227. String msg;
  228. List<LikePhoneList> data;
  229. LikePhone({this.success, this.code, this.msg, this.data});
  230. factory LikePhone.fromJson(Map<String, dynamic> json) {
  231. List list = json['data'] as List;
  232. List<LikePhoneList> tempList =
  233. list.map((i) => LikePhoneList.fromJson(i)).toList();
  234. return LikePhone(
  235. success: json['success'],
  236. code: json['code'],
  237. msg: json['msg'],
  238. data: tempList);
  239. }
  240. }
  241. class LikePhoneList {
  242. String address;
  243. String areaCode;
  244. String areaName;
  245. String cityCode;
  246. String cityName;
  247. String companyCode;
  248. String companyName;
  249. String companyPhone;
  250. int id;
  251. String provinceCode;
  252. String provinceName;
  253. String uzerPhone;
  254. String bankCard;
  255. String bankName;
  256. String openBankName;
  257. String openBankPhone;
  258. LikePhoneList(
  259. {this.address,
  260. this.areaCode,
  261. this.areaName,
  262. this.cityCode,
  263. this.cityName,
  264. this.companyCode,
  265. this.companyName,
  266. this.companyPhone,
  267. this.id,
  268. this.provinceCode,
  269. this.provinceName,
  270. this.uzerPhone,
  271. this.bankCard,
  272. this.bankName,
  273. this.openBankName,
  274. this.openBankPhone,
  275. });
  276. factory LikePhoneList.fromJson(Map<String, dynamic> json) {
  277. return LikePhoneList(
  278. address: json['address'],
  279. areaCode: json['areaCode'],
  280. areaName: json['areaName'],
  281. cityCode: json['cityCode'],
  282. cityName: json['cityName'],
  283. companyCode: json['companyCode'],
  284. companyName: json['companyName'],
  285. companyPhone: json['companyPhone'],
  286. id: json['id'],
  287. provinceCode: json['provinceCode'],
  288. provinceName: json['provinceName'],
  289. uzerPhone: json['uzerPhone'],
  290. bankCard:json['bankCard'],
  291. bankName:json['bankName'],
  292. openBankName:json['openBankName'],
  293. openBankPhone:json['openBankPhone'],
  294. );
  295. }
  296. }
  297. //商品类别列表
  298. class GoodsCategory {
  299. bool success;
  300. int code;
  301. String msg;
  302. List<GoodCategoryList> data;
  303. GoodsCategory({this.success, this.code, this.msg, this.data});
  304. factory GoodsCategory.fromJson(Map<String, dynamic> json) {
  305. List list = json['data'] as List;
  306. List<GoodCategoryList> tempList =
  307. list.map((i) => GoodCategoryList.fromJson(i)).toList();
  308. return GoodsCategory(
  309. success: json['success'],
  310. code: json['code'],
  311. msg: json['msg'],
  312. data: tempList);
  313. }
  314. }
  315. class GoodCategoryList {
  316. int id;
  317. String name;
  318. GoodCategoryList({this.id, this.name});
  319. factory GoodCategoryList.fromJson(Map<String, dynamic> json) {
  320. return GoodCategoryList(id: json['id'], name: json['name']);
  321. }
  322. }
  323. //商品包装类别列表
  324. class GoodsPackage {
  325. bool success;
  326. int code;
  327. String msg;
  328. List<GoodsPackageList> data;
  329. GoodsPackage({this.success, this.code, this.msg, this.data});
  330. factory GoodsPackage.fromJson(Map<String, dynamic> json) {
  331. List list = json['data'] as List;
  332. List<GoodsPackageList> tempList =
  333. list.map((i) => GoodsPackageList.fromJson(i)).toList();
  334. return GoodsPackage(
  335. success: json['success'],
  336. code: json['code'],
  337. msg: json['msg'],
  338. data: tempList
  339. );
  340. }
  341. }
  342. class GoodsPackageList {
  343. int id;
  344. String name;
  345. GoodsPackageList({this.id, this.name});
  346. factory GoodsPackageList.fromJson(Map<String, dynamic> json) {
  347. return GoodsPackageList(id: json['id'], name: json['name']);
  348. }
  349. }
  350. //创建订单
  351. class CreateOrder {
  352. bool success;
  353. int code;
  354. String msg;
  355. String orderNo;
  356. CreateOrder({this.success, this.code, this.msg, this.orderNo});
  357. factory CreateOrder.fromJson(Map<String, dynamic> json) {
  358. return CreateOrder(
  359. success: json['success'],
  360. code: json['code'],
  361. msg: json['msg'],
  362. orderNo: json['data']['orderNo']);
  363. }
  364. }
  365. //订单详情
  366. class OrderDetailObj {
  367. bool success;
  368. int code;
  369. String msg;
  370. OrderDetailData data;
  371. OrderDetailObj({
  372. this.success,
  373. this.code,
  374. this.msg,
  375. this.data,
  376. });
  377. factory OrderDetailObj.fromJson(Map<String, dynamic> json) {
  378. OrderDetailData tempData = OrderDetailData.fromJson(json['data']);
  379. return OrderDetailObj(
  380. success: json['success'],
  381. code: json['code'],
  382. msg: json['msg'],
  383. data: tempData);
  384. }
  385. }
  386. class OrderDetailData {
  387. int createTime;
  388. String orderNo;
  389. String goods; //商品名称
  390. int goodsAgencyFund; //代收款
  391. int goodsCategoryId;
  392. String goodsCategoryName;//货物类型
  393. int goodsFlatCost; //工本费
  394. int goodsFreight; //运费
  395. int goodsInsurance; //商品保险费
  396. int goodsOtherFees; //其他费用
  397. int goodsPackingId;
  398. String goodsPackingName;//货物包装类型
  399. int goodsPaymentMethod;//付款方式
  400. int goodsPriceProtection; //商品保价
  401. int goodsQuantity; //商品数量
  402. int goodsValue; //商品价值
  403. double goodsWeight; //商品重量
  404. int id; //订单Id
  405. String lineCode;//线路编码
  406. int lineId;//线路id
  407. String lineName;//线路名称
  408. String memo; //备注
  409. int orderStatus; //订单状态 0:代收单,1:已接单,2:配送中,3:已签收,4:拒收
  410. String receiptCompanyAddress; //收件详细地址
  411. String receiptCompanyAreaCode; //收件区码
  412. String receiptCompanyAreaName; //收件区名
  413. String receiptCompanyBankCard; //收件银行卡号
  414. String receiptCompanyCityCode; //收件市码
  415. String receiptCompanyCityName; //收件市名
  416. int receiptCompanyId;
  417. String receiptCompanyName; //收件公司名称
  418. String receiptCompanyPhone; //收件公司电话
  419. String receiptCompanyProvinceCode; //收件省码
  420. String receiptCompanyProvinceName; //收件省名
  421. String sendCompanyAddress; //发件详细地址
  422. String sendCompanyAreaCode; //发件区码
  423. String sendCompanyAreaName; //发件区名
  424. String sendCompanyBankCard; //发件银行卡号
  425. String sendCompanyCityCode; //发件市码
  426. String sendCompanyCityName; //发件市名
  427. int sendCompanyId; //发件公司id
  428. String sendCompanyName; //发件公司名称
  429. String sendCompanyCode; //发件公司编码
  430. String sendCompanyProvinceCode; //发件公司市码
  431. String sendCompanyProvinceName; //发件公司市名
  432. String sendCompanyPhone;
  433. String senderIdCard; //发件人身份证号
  434. String senderName; //发件人名称
  435. String senderPhone; //发件人电话
  436. int stationId;
  437. String stationName;
  438. String receiptStationName;
  439. String receiptStationCode;
  440. OrderDetailData(
  441. {
  442. this.createTime,
  443. this.orderNo,
  444. this.goods,
  445. this.goodsAgencyFund,
  446. this.goodsCategoryId,
  447. this.goodsCategoryName,
  448. this.goodsFlatCost,
  449. this.goodsFreight,
  450. this.goodsInsurance,
  451. this.goodsOtherFees,
  452. this.goodsPackingId,
  453. this.goodsPackingName,
  454. this.goodsPaymentMethod,
  455. this.goodsPriceProtection,
  456. this.goodsQuantity,
  457. this.goodsValue,
  458. this.goodsWeight,
  459. this.id,
  460. this.lineCode,
  461. this.lineId,
  462. this.lineName,
  463. this.memo,
  464. this.orderStatus,
  465. this.receiptCompanyAddress,
  466. this.receiptCompanyAreaCode,
  467. this.receiptCompanyAreaName,
  468. this.receiptCompanyPhone,
  469. this.receiptCompanyBankCard,
  470. this.receiptCompanyCityCode,
  471. this.receiptCompanyCityName,
  472. this.receiptCompanyId,
  473. this.receiptCompanyName,
  474. this.receiptCompanyProvinceCode,
  475. this.receiptCompanyProvinceName,
  476. this.sendCompanyAddress,
  477. this.sendCompanyAreaCode,
  478. this.sendCompanyAreaName,
  479. this.sendCompanyBankCard,
  480. this.sendCompanyCityCode,
  481. this.sendCompanyCityName,
  482. this.sendCompanyId,
  483. this.sendCompanyName,
  484. this.sendCompanyCode,
  485. this.sendCompanyProvinceCode,
  486. this.sendCompanyProvinceName,
  487. this.senderIdCard,
  488. this.senderName,
  489. this.sendCompanyPhone,
  490. this.senderPhone,
  491. this.stationId,
  492. this.stationName,
  493. this.receiptStationName,
  494. this.receiptStationCode,
  495. });
  496. factory OrderDetailData.fromJson(Map<String, dynamic> json) {
  497. return OrderDetailData(
  498. createTime:json['createTime'],
  499. orderNo: json['orderNo'],
  500. goods: json['goods'] ?? '',
  501. goodsAgencyFund: json['goodsAgencyFund'] ?? 0,
  502. goodsCategoryId:json['goodsCategoryId'],
  503. goodsCategoryName:json['goodsCategoryName'],
  504. goodsFlatCost: json['goodsFlatCost'] ?? 0,
  505. goodsFreight: json['goodsFreight'] ?? 0,
  506. goodsInsurance: json['goodsInsurance'],
  507. goodsOtherFees: json['goodsOtherFees'] ?? 0,
  508. goodsPackingId:json['goodsPackingId'],
  509. goodsPackingName:json['goodsPackingName'],
  510. goodsPriceProtection: json['goodsPriceProtection'],
  511. goodsPaymentMethod:json['goodsPaymentMethod'],
  512. goodsQuantity: json['goodsQuantity'],
  513. goodsValue: json['goodsValue'],
  514. goodsWeight: json['goodsWeight'] ?? 0,
  515. id: json['id'],
  516. lineCode:json['lineCode'],
  517. lineId:json['lineId'],
  518. lineName:json['lineName'],
  519. memo: json['memo'] ?? '',
  520. orderStatus: json['orderStatus'],
  521. receiptCompanyAddress: json['receiptCompanyAddress'],
  522. receiptCompanyAreaCode: json['receiptCompanyAreaCode'],
  523. receiptCompanyAreaName: json['receiptCompanyAreaName'],
  524. receiptCompanyBankCard: json['receiptCompanyBankCard'],
  525. receiptCompanyCityCode: json['receiptCompanyCityCode'],
  526. receiptCompanyCityName: json['receiptCompanyCityName'],
  527. receiptCompanyId:json['receiptCompanyId'],
  528. receiptCompanyName: json['receiptCompanyName'],
  529. receiptCompanyPhone: json['receiptCompanyPhone'],
  530. receiptCompanyProvinceCode: json['receiptCompanyProvinceCode'],
  531. receiptCompanyProvinceName: json['receiptCompanyProvinceName'],
  532. sendCompanyAddress: json['sendCompanyAddress'],
  533. sendCompanyAreaCode: json['sendCompanyAreaCode'],
  534. sendCompanyAreaName: json['sendCompanyAreaName'],
  535. sendCompanyBankCard: json['sendCompanyBankCard'],
  536. sendCompanyCityCode: json['sendCompanyCityCode'],
  537. sendCompanyCityName: json['sendCompanyCityName'],
  538. sendCompanyId: json['sendCompanyId'],
  539. sendCompanyName: json['sendCompanyName'],
  540. sendCompanyCode: json['sendCompanyCode'],
  541. sendCompanyProvinceCode: json['sendCompanyProvinceCode'],
  542. sendCompanyProvinceName: json['sendCompanyProvinceName'],
  543. senderIdCard: json['senderIdCard'],
  544. senderName: json['senderName'],
  545. senderPhone: json['senderPhone'],
  546. sendCompanyPhone:json['sendCompanyPhone'],
  547. stationId:json['stationId'],
  548. stationName:json['stationName'],
  549. receiptStationName:json['receiptStationName'],
  550. receiptStationCode:json['receiptStationCode'],
  551. );
  552. }
  553. }
  554. //接单对象
  555. class OrderReception {
  556. bool success;
  557. int code;
  558. String msg;
  559. OrderReception({
  560. this.success,
  561. this.code,
  562. this.msg,
  563. });
  564. factory OrderReception.fromJson(Map<String, dynamic> json) {
  565. return OrderReception(
  566. success: json['success'],
  567. code: json['code'],
  568. msg: json['msg'],
  569. );
  570. }
  571. }
  572. //订单管理获取列表
  573. class FromStatusGetOrderObj {
  574. bool success;
  575. int code;
  576. String msg;
  577. FromStatusGetOrderData data;
  578. FromStatusGetOrderObj({this.success, this.code, this.msg, this.data});
  579. factory FromStatusGetOrderObj.fromJson(Map<String, dynamic> json) {
  580. return FromStatusGetOrderObj(
  581. success: json['success'],
  582. code: json['code'],
  583. msg: json['msg'],
  584. data: FromStatusGetOrderData.fromJson(json['data']));
  585. }
  586. }
  587. class FromStatusGetOrderData {
  588. bool hasNextPage;
  589. List<FromStatusGetOrderList> items;
  590. int limit;
  591. int page;
  592. int totalCount;
  593. int totalPage;
  594. FromStatusGetOrderData({
  595. this.hasNextPage,
  596. this.items,
  597. this.limit,
  598. this.page,
  599. this.totalCount,
  600. this.totalPage,
  601. });
  602. factory FromStatusGetOrderData.fromJson(Map<String, dynamic> json) {
  603. List list = json['items'] as List;
  604. List<FromStatusGetOrderList> tempList =
  605. list.map((i) => FromStatusGetOrderList.fromJson(i)).toList();
  606. return FromStatusGetOrderData(
  607. hasNextPage: json['hasNextPage'],
  608. items: tempList,
  609. limit: json['limit'],
  610. page: json['page'],
  611. totalCount: json['totalCount'],
  612. totalPage: json['totalPage'],
  613. );
  614. }
  615. }
  616. class FromStatusGetOrderList {
  617. int goodsAgencyFund;
  618. int goodsFreight;
  619. int goodsQuantity;
  620. int orderStatus;
  621. String orderNo;
  622. String goods;
  623. String receiptCompanyName;
  624. String sendCompanyName;
  625. FromStatusGetOrderList({
  626. this.goodsAgencyFund,
  627. this.goodsFreight,
  628. this.goodsQuantity,
  629. this.orderStatus,
  630. this.orderNo,
  631. this.goods,
  632. this.receiptCompanyName,
  633. this.sendCompanyName,
  634. });
  635. factory FromStatusGetOrderList.fromJson(Map<String, dynamic> json) {
  636. return FromStatusGetOrderList(
  637. goodsAgencyFund: json['goodsAgencyFund'],
  638. goodsFreight: json['goodsFreight'],
  639. goodsQuantity: json['goodsQuantity'],
  640. orderStatus: json['orderStatus'],
  641. orderNo: json['orderNo'],
  642. goods: json['goods'] ?? '',
  643. receiptCompanyName: json['receiptCompanyName'],
  644. sendCompanyName: json['sendCompanyName'],
  645. );
  646. }
  647. }
  648. //提交改单、作废、寄件、拒收、签收后返回对象
  649. class OrderStatusReturnObj {
  650. bool success;
  651. int code;
  652. String msg;
  653. OrderStatusReturnObj({this.success, this.code, this.msg});
  654. factory OrderStatusReturnObj.fromJson(Map<String, dynamic> json) {
  655. return OrderStatusReturnObj(
  656. success: json['success'],
  657. code: json['code'],
  658. msg: json['msg'],
  659. );
  660. }
  661. }
  662. //模糊匹配订单号返回对象
  663. class LikeOrderNo {
  664. bool success;
  665. int code;
  666. String msg;
  667. List data;
  668. LikeOrderNo({
  669. this.success,
  670. this.code,
  671. this.msg,
  672. this.data,
  673. });
  674. factory LikeOrderNo.fromJson(Map<String, dynamic> json) {
  675. return LikeOrderNo(
  676. success: json['success'],
  677. code: json['code'],
  678. msg: json['msg'],
  679. data: json['data'],
  680. );
  681. }
  682. }
  683. //验证token是否过期返回对象
  684. class CheckToken {
  685. bool success;
  686. int code;
  687. String msg;
  688. String data;
  689. CheckToken({
  690. this.success,
  691. this.code,
  692. this.msg,
  693. this.data,
  694. });
  695. factory CheckToken.fromJson(Map<String, dynamic> json) {
  696. return CheckToken(
  697. success: json['success'],
  698. code: json['code'],
  699. msg: json['msg'],
  700. data: json['data'],
  701. );
  702. }
  703. }
  704. //蓝牙信息缓存对象
  705. class BtInfoList {
  706. List<BtInfoObj> btList;
  707. BtInfoList({this.btList});
  708. factory BtInfoList.fromJson(List json) {
  709. List tempList = json.map((i) => BtInfoObj.fromJson(i)).toList();
  710. return BtInfoList(btList: tempList);
  711. }
  712. }
  713. class BtInfoObj {
  714. String name;
  715. bool showLoadStauts;
  716. bool connectStatus;
  717. BtInfoObj({this.name, this.showLoadStauts, this.connectStatus});
  718. factory BtInfoObj.fromJson(Map<String, dynamic> json) {
  719. return BtInfoObj(
  720. name: json['name'],
  721. showLoadStauts: json['showLoadStauts'],
  722. connectStatus: json['connectStatus'],
  723. );
  724. }
  725. }
  726. //根据公司id获取线路
  727. class CompanyOfLine {
  728. bool success;
  729. int code;
  730. String msg;
  731. List<CompanyOfLineList> data;
  732. CompanyOfLine({
  733. this.success,
  734. this.code,
  735. this.msg,
  736. this.data
  737. });
  738. factory CompanyOfLine.fromJson(Map<String,dynamic> json){
  739. var list = json['data'] as List;
  740. List tempList = list.map((i) => CompanyOfLineList.fromJson(i)).toList();
  741. return CompanyOfLine(
  742. success:json['success'],
  743. code:json['code'],
  744. msg:json['msg'],
  745. data:tempList,
  746. );
  747. }
  748. }
  749. class CompanyOfLineList {
  750. int lineId;
  751. String lineName;
  752. int uzerCompanyId;
  753. bool checkedStatus = false;
  754. CompanyOfLineList({
  755. this.lineId,
  756. this.lineName,
  757. this.uzerCompanyId,
  758. });
  759. factory CompanyOfLineList.fromJson(Map<String, dynamic> json) {
  760. return CompanyOfLineList(
  761. lineId:json['lineId'],
  762. lineName:json['lineName'],
  763. uzerCompanyId:json['uzerCompanyId'],
  764. );
  765. }
  766. }
  767. //物流公司客服电话及公司名
  768. class CompanyInfo{
  769. bool success;
  770. int code;
  771. String msg;
  772. CompanyInfoChild data;
  773. CompanyInfo({
  774. this.success,
  775. this.code,
  776. this.msg,
  777. this.data
  778. });
  779. factory CompanyInfo.fromJson(Map<String,dynamic> json){
  780. CompanyInfoChild data = CompanyInfoChild.fromJson(json['data']);
  781. return CompanyInfo(
  782. success:json['success'],
  783. code:json['code'],
  784. msg:json['msg'],
  785. data:data
  786. );
  787. }
  788. }
  789. class CompanyInfoChild{
  790. String name;
  791. String customerPhone;
  792. String defaultPrice;
  793. CompanyInfoChild({
  794. this.name,
  795. this.customerPhone,
  796. this.defaultPrice,
  797. });
  798. factory CompanyInfoChild.fromJson(Map<String,dynamic> json){
  799. return CompanyInfoChild(
  800. name:json['name'],
  801. customerPhone:json['customerPhone'],
  802. defaultPrice:json['defaultPrice'],
  803. );
  804. }
  805. }
  806. //获取银行卡信息对象
  807. class BankNameObj{
  808. bool success;
  809. int code;
  810. String msg;
  811. String data;
  812. BankNameObj({
  813. this.success,
  814. this.code,
  815. this.msg,
  816. this.data
  817. });
  818. factory BankNameObj.fromJson(Map<String,dynamic> json){
  819. return BankNameObj(
  820. success:json['success'],
  821. code:json['code'],
  822. msg:json['msg'],
  823. data:json['data'],
  824. );
  825. }
  826. }