import 'package:bbyyy/generated/json/red_envelope_wall_bean_entity.g.dart'; import 'package:bbyyy/generated/json/base/json_field.dart'; @JsonSerializable() class RedEnvelopeWallBeanEntity { RedEnvelopeWallBeanEntity(); factory RedEnvelopeWallBeanEntity.fromJson(Map json) => $RedEnvelopeWallBeanEntityFromJson(json); Map toJson() => $RedEnvelopeWallBeanEntityToJson(this); RedEnvelopeWallBeanData data; String error; } @JsonSerializable() class RedEnvelopeWallBeanData { RedEnvelopeWallBeanData(); factory RedEnvelopeWallBeanData.fromJson(Map json) => $RedEnvelopeWallBeanDataFromJson(json); Map toJson() => $RedEnvelopeWallBeanDataToJson(this); int total; List data; } @JsonSerializable() class RedEnvelopeWallBeanDataData { RedEnvelopeWallBeanDataData(); factory RedEnvelopeWallBeanDataData.fromJson(Map json) => $RedEnvelopeWallBeanDataDataFromJson(json); Map toJson() => $RedEnvelopeWallBeanDataDataToJson(this); int id; String title; @JSONField(name: "payer_uid") int payerUid; @JSONField(name: "payer_name") String payerName; @JSONField(name: "payer_pic") String payerPic; @JSONField(name: "payee_uid") int payeeUid; @JSONField(name: "shop_uid") int shopUid; int state; @JSONField(name: "left_amount") int leftAmount; }