import 'package:huixiang/data/min_order_info.dart'; import 'package:json_annotation/json_annotation.dart'; part 'vip_card_home.g.dart'; @JsonSerializable(explicitToJson: true) class VipCardHome { Member? member; List? cards = []; List? coupons = []; List? productVips = []; VipCardHome(); factory VipCardHome.fromJson(Map json) => _$VipCardHomeFromJson(json); Map toJson() => _$VipCardHomeToJson(this); } @JsonSerializable(explicitToJson: true) class Member { String? masterId = ''; dynamic masterCardRankName; String? vipNo = ''; String? nickname = ''; String? headimg = ''; bool? userType = false; String? sex = ''; int? level = 0; String? addressId = ''; String? remark = ''; String? phone = ''; String? createTime = ''; String? birth = ''; dynamic balance; String? money = ''; String? activityMoney = ''; String? greenMoney = ''; String? expendAmount = ''; int? organic = 0; String? points = ''; bool? isBind = false; MemberRankVo? memberRankVo; int? age = 0; String? inviteCode = ''; int? inviteNumber = 0; int? todayInviteNumber = 0; String? signature = ''; String? background = ''; dynamic certification; bool? hasPayPassword = false; bool? isVip = false; dynamic vipExpire; bool? isVipSubscribe = false; int? vipDuration = 0; Member(); factory Member.fromJson(Map json) => _$MemberFromJson(json); Map toJson() => _$MemberToJson(this); } @JsonSerializable(explicitToJson: true) class Cards { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? name = ''; int? duration = 0; String? price = ''; bool? autoSubscribe = false; bool? isDelete = false; Cards(); factory Cards.fromJson(Map json) => _$CardsFromJson(json); Map toJson() => _$CardsToJson(this); } @JsonSerializable(explicitToJson: true) class ProductVips { String? id = ''; String? tenantCode = ''; String? createTime = ''; String? createUser = ''; String? image = ''; String? updateTime = ''; String? updateUser = ''; String? supplierName = ''; String? storeId = ''; String? categoryId = ''; String? groupId = ''; String? shortName = ''; String? productName = ''; String? sellDesc = ''; String? productCode = ''; String? weight = ''; String? applyPrice = ''; String? price = ''; String? vipPrice = ''; int? stock = 0; int? sellCount = 0; int? needLogistics = 0; int? oversold = 0; int? organic = 0; int? status = 0; bool? posShow = false; int? productType = 0; int? productNumber = 0; int? setMeal = 0; int? attrStyle = 0; String? detail = ''; int? isDelete = 0; String? printerFlag = ''; dynamic materials; dynamic materialId; String? details = ''; String? thumbnailImg = ''; String? info = ''; int? buyCount = 0; int? sellCountLimit = 0; String? vipDiscount = ''; ProductVips(); factory ProductVips.fromJson(Map json) => _$ProductVipsFromJson(json); Map toJson() => _$ProductVipsToJson(this); }