import 'package:bbyyy/generated/json/store_bean_entity.g.dart'; import 'package:bbyyy/generated/json/base/json_field.dart'; @JsonSerializable() class StoreBeanEntity { StoreBeanEntity(); factory StoreBeanEntity.fromJson(Map json) => $StoreBeanEntityFromJson(json); Map toJson() => $StoreBeanEntityToJson(this); StoreBeanData data; String error; } @JsonSerializable() class StoreBeanData { StoreBeanData(); factory StoreBeanData.fromJson(Map json) => $StoreBeanDataFromJson(json); Map toJson() => $StoreBeanDataToJson(this); int total; List data; } @JsonSerializable() class StoreBeanDataData { StoreBeanDataData(); factory StoreBeanDataData.fromJson(Map json) => $StoreBeanDataDataFromJson(json); Map toJson() => $StoreBeanDataDataToJson(this); @JSONField(name: "create_time") String createTime; @JSONField(name: "inner_trade") bool innerTrade; @JSONField(name: "shop_commission_threshold") double shopCommissionThreshold; String notice; int state; bool banned; @JSONField(name: "shop_commission_pricing") double shopCommissionPricing; @JSONField(name: "pay_discount") double payDiscount; @JSONField(name: "shop_commission_receiver_uid") int shopCommissionReceiverUid; bool private; @JSONField(name: "owner_uid") int ownerUid; @JSONField(name: "owner_name") String ownerName; @JSONField(name: "owner_pic") String ownerPic; @JSONField(name: "hide_members") bool hideMembers = true; @JSONField(name: "hide_offline_pay") bool hideOfflinePay = false; @JSONField(name: "fee_type") int feeType; String mobile; int id; String picture; @JSONField(name: "ban_expire_date") String banExpireDate; String address; String introduction; int uid; String name; @JSONField(name: "ban_start_date") String banStartDate; @JSONField(name: "shop_commission_percent") bool shopCommissionPercent; @JSONField(name: "owner_pay_platform_fee") bool ownerPayPlatformFee; double longitude; double latitude; double distance; String category; }