import 'package:huixiang/data/min_order_info.dart'; import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/vip_card_home.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/vip_card_home.g.dart'; @JsonSerializable() class VipCardHome { Member? member; List? cards = []; List? coupons = []; List? productVips = []; VipCardHome(); factory VipCardHome.fromJson(Map json) => $VipCardHomeFromJson(json); Map toJson() => $VipCardHomeToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } }