import 'package:bbyyy/generated/json/withdraw_pricing_bean_entity.g.dart'; import 'package:bbyyy/generated/json/base/json_field.dart'; @JsonSerializable() class WithdrawPricingBeanEntity { WithdrawPricingBeanEntity(); factory WithdrawPricingBeanEntity.fromJson(Map json) => $WithdrawPricingBeanEntityFromJson(json); Map toJson() => $WithdrawPricingBeanEntityToJson(this); WithdrawPricingBeanData data; String error; } @JsonSerializable() class WithdrawPricingBeanData { WithdrawPricingBeanData(); factory WithdrawPricingBeanData.fromJson(Map json) => $WithdrawPricingBeanDataFromJson(json); Map toJson() => $WithdrawPricingBeanDataToJson(this); int total; List data; } @JsonSerializable() class WithdrawPricingBeanDataData { WithdrawPricingBeanDataData(); factory WithdrawPricingBeanDataData.fromJson(Map json) => $WithdrawPricingBeanDataDataFromJson(json); Map toJson() => $WithdrawPricingBeanDataDataToJson(this); @JSONField(name: "percent_fee") double percentFee; @JSONField(name: "extra_fee") double extraFee; double threshold; @JSONField(name: "max_per_hand") double maxPerHand; @JSONField(name: "min_per_hand") double minPerHand; }