flow_bean_entity.dart 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import 'package:bbyyy/generated/json/flow_bean_entity.g.dart';
  2. import 'package:bbyyy/generated/json/base/json_field.dart';
  3. @JsonSerializable()
  4. class FlowBeanEntity {
  5. FlowBeanEntity();
  6. factory FlowBeanEntity.fromJson(Map<String, dynamic> json) => $FlowBeanEntityFromJson(json);
  7. Map<String, dynamic> toJson() => $FlowBeanEntityToJson(this);
  8. FlowBeanData data;
  9. String error;
  10. }
  11. @JsonSerializable()
  12. class FlowBeanData {
  13. FlowBeanData();
  14. factory FlowBeanData.fromJson(Map<String, dynamic> json) => $FlowBeanDataFromJson(json);
  15. Map<String, dynamic> toJson() => $FlowBeanDataToJson(this);
  16. int total;
  17. FlowBeanDataData data;
  18. }
  19. @JsonSerializable()
  20. class FlowBeanDataData {
  21. FlowBeanDataData();
  22. factory FlowBeanDataData.fromJson(Map<String, dynamic> json) => $FlowBeanDataDataFromJson(json);
  23. Map<String, dynamic> toJson() => $FlowBeanDataDataToJson(this);
  24. @JSONField(name: "total_amount")
  25. double totalAmount;
  26. List<FlowBeanDataDataRecords> records;
  27. }
  28. @JsonSerializable()
  29. class FlowBeanDataDataRecords {
  30. FlowBeanDataDataRecords();
  31. factory FlowBeanDataDataRecords.fromJson(Map<String, dynamic> json) => $FlowBeanDataDataRecordsFromJson(json);
  32. Map<String, dynamic> toJson() => $FlowBeanDataDataRecordsToJson(this);
  33. int id;
  34. int type;
  35. @JSONField(name: "trader_pic")
  36. String traderPic;
  37. @JSONField(name: "pay_time")
  38. String payTime;
  39. String remark;
  40. @JSONField(name: "paid_amount")
  41. double paidAmount;
  42. @JSONField(name: "user_name")
  43. String userName;
  44. @JSONField(name: "user_pic")
  45. String userPic;
  46. @JSONField(name: "trader_uid")
  47. int traderUid;
  48. @JSONField(name: "peer_flow_id")
  49. int peerFlowId;
  50. @JSONField(name: "trader_name")
  51. String traderName;
  52. @JSONField(name: "pay_way")
  53. int payWay;
  54. @JSONField(name: "order_uid")
  55. int orderUid;
  56. @JSONField(name: "user_uid")
  57. int userUid;
  58. @JSONField(name: "shop_uid")
  59. int shopUid;
  60. @JSONField(name: "user_balance")
  61. double userBalance;
  62. }