store_bean_entity.dart 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import 'package:bbyyy/generated/json/store_bean_entity.g.dart';
  2. import 'package:bbyyy/generated/json/base/json_field.dart';
  3. @JsonSerializable()
  4. class StoreBeanEntity {
  5. StoreBeanEntity();
  6. factory StoreBeanEntity.fromJson(Map<String, dynamic> json) => $StoreBeanEntityFromJson(json);
  7. Map<String, dynamic> toJson() => $StoreBeanEntityToJson(this);
  8. StoreBeanData data;
  9. String error;
  10. }
  11. @JsonSerializable()
  12. class StoreBeanData {
  13. StoreBeanData();
  14. factory StoreBeanData.fromJson(Map<String, dynamic> json) => $StoreBeanDataFromJson(json);
  15. Map<String, dynamic> toJson() => $StoreBeanDataToJson(this);
  16. int total;
  17. List<StoreBeanDataData> data;
  18. }
  19. @JsonSerializable()
  20. class StoreBeanDataData {
  21. StoreBeanDataData();
  22. factory StoreBeanDataData.fromJson(Map<String, dynamic> json) => $StoreBeanDataDataFromJson(json);
  23. Map<String, dynamic> toJson() => $StoreBeanDataDataToJson(this);
  24. @JSONField(name: "create_time")
  25. String createTime;
  26. @JSONField(name: "inner_trade")
  27. bool innerTrade;
  28. @JSONField(name: "shop_commission_threshold")
  29. double shopCommissionThreshold;
  30. String notice;
  31. int state;
  32. bool banned;
  33. @JSONField(name: "shop_commission_pricing")
  34. double shopCommissionPricing;
  35. @JSONField(name: "pay_discount")
  36. double payDiscount;
  37. @JSONField(name: "shop_commission_receiver_uid")
  38. int shopCommissionReceiverUid;
  39. bool private;
  40. @JSONField(name: "owner_uid")
  41. int ownerUid;
  42. @JSONField(name: "owner_name")
  43. String ownerName;
  44. @JSONField(name: "owner_pic")
  45. String ownerPic;
  46. @JSONField(name: "hide_members")
  47. bool hideMembers = true;
  48. @JSONField(name: "hide_offline_pay")
  49. bool hideOfflinePay = false;
  50. @JSONField(name: "fee_type")
  51. int feeType;
  52. String mobile;
  53. int id;
  54. String picture;
  55. @JSONField(name: "ban_expire_date")
  56. String banExpireDate;
  57. String address;
  58. String introduction;
  59. int uid;
  60. String name;
  61. @JSONField(name: "ban_start_date")
  62. String banStartDate;
  63. @JSONField(name: "shop_commission_percent")
  64. bool shopCommissionPercent;
  65. @JSONField(name: "owner_pay_platform_fee")
  66. bool ownerPayPlatformFee;
  67. double longitude;
  68. double latitude;
  69. double distance;
  70. String category;
  71. }