// GENERATED CODE - DO NOT MODIFY BY HAND part of 'vip_card_home.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** VipCardHome _$VipCardHomeFromJson(Map json) => VipCardHome() ..member = json['member'] == null ? null : Member.fromJson(json['member'] as Map) ..cards = (json['cards'] as List?) ?.map((e) => Cards.fromJson(e as Map)) .toList() ..coupons = json['coupons'] as List? ..productVips = (json['productVips'] as List?) ?.map((e) => ProductVips.fromJson(e as Map)) .toList(); Map _$VipCardHomeToJson(VipCardHome instance) => { 'member': instance.member?.toJson(), 'cards': instance.cards?.map((e) => e.toJson()).toList(), 'coupons': instance.coupons, 'productVips': instance.productVips?.map((e) => e.toJson()).toList(), }; Member _$MemberFromJson(Map json) => Member() ..masterId = json['masterId'] as String? ..masterCardRankName = json['masterCardRankName'] ..vipNo = json['vipNo'] as String? ..nickname = json['nickname'] as String? ..headimg = json['headimg'] as String? ..userType = json['userType'] as bool? ..sex = json['sex'] as String? ..level = (json['level'] as num?)?.toInt() ..addressId = json['addressId'] as String? ..remark = json['remark'] as String? ..phone = json['phone'] as String? ..createTime = json['createTime'] as String? ..birth = json['birth'] as String? ..balance = json['balance'] ..money = json['money'] as String? ..activityMoney = json['activityMoney'] as String? ..greenMoney = json['greenMoney'] as String? ..expendAmount = json['expendAmount'] as String? ..organic = (json['organic'] as num?)?.toInt() ..points = json['points'] as String? ..isBind = json['isBind'] as bool? ..memberRankVo = json['memberRankVo'] == null ? null : MemberRankVo.fromJson(json['memberRankVo'] as Map) ..age = (json['age'] as num?)?.toInt() ..inviteCode = json['inviteCode'] as String? ..inviteNumber = (json['inviteNumber'] as num?)?.toInt() ..todayInviteNumber = (json['todayInviteNumber'] as num?)?.toInt() ..signature = json['signature'] as String? ..background = json['background'] as String? ..certification = json['certification'] ..hasPayPassword = json['hasPayPassword'] as bool? ..isVip = json['isVip'] as bool? ..vipExpire = json['vipExpire'] ..isVipSubscribe = json['isVipSubscribe'] as bool? ..vipDuration = (json['vipDuration'] as num?)?.toInt(); Map _$MemberToJson(Member instance) => { 'masterId': instance.masterId, 'masterCardRankName': instance.masterCardRankName, 'vipNo': instance.vipNo, 'nickname': instance.nickname, 'headimg': instance.headimg, 'userType': instance.userType, 'sex': instance.sex, 'level': instance.level, 'addressId': instance.addressId, 'remark': instance.remark, 'phone': instance.phone, 'createTime': instance.createTime, 'birth': instance.birth, 'balance': instance.balance, 'money': instance.money, 'activityMoney': instance.activityMoney, 'greenMoney': instance.greenMoney, 'expendAmount': instance.expendAmount, 'organic': instance.organic, 'points': instance.points, 'isBind': instance.isBind, 'memberRankVo': instance.memberRankVo?.toJson(), 'age': instance.age, 'inviteCode': instance.inviteCode, 'inviteNumber': instance.inviteNumber, 'todayInviteNumber': instance.todayInviteNumber, 'signature': instance.signature, 'background': instance.background, 'certification': instance.certification, 'hasPayPassword': instance.hasPayPassword, 'isVip': instance.isVip, 'vipExpire': instance.vipExpire, 'isVipSubscribe': instance.isVipSubscribe, 'vipDuration': instance.vipDuration, }; Cards _$CardsFromJson(Map json) => Cards() ..id = json['id'] as String? ..createTime = json['createTime'] as String? ..createUser = json['createUser'] as String? ..updateTime = json['updateTime'] as String? ..updateUser = json['updateUser'] as String? ..name = json['name'] as String? ..duration = (json['duration'] as num?)?.toInt() ..price = json['price'] as String? ..autoSubscribe = json['autoSubscribe'] as bool? ..isDelete = json['isDelete'] as bool?; Map _$CardsToJson(Cards instance) => { 'id': instance.id, 'createTime': instance.createTime, 'createUser': instance.createUser, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, 'name': instance.name, 'duration': instance.duration, 'price': instance.price, 'autoSubscribe': instance.autoSubscribe, 'isDelete': instance.isDelete, }; ProductVips _$ProductVipsFromJson(Map json) => ProductVips() ..id = json['id'] as String? ..tenantCode = json['tenantCode'] as String? ..createTime = json['createTime'] as String? ..createUser = json['createUser'] as String? ..image = json['image'] as String? ..updateTime = json['updateTime'] as String? ..updateUser = json['updateUser'] as String? ..supplierName = json['supplierName'] as String? ..storeId = json['storeId'] as String? ..categoryId = json['categoryId'] as String? ..groupId = json['groupId'] as String? ..shortName = json['shortName'] as String? ..productName = json['productName'] as String? ..sellDesc = json['sellDesc'] as String? ..productCode = json['productCode'] as String? ..weight = json['weight'] as String? ..applyPrice = json['applyPrice'] as String? ..price = json['price'] as String? ..vipPrice = json['vipPrice'] as String? ..stock = (json['stock'] as num?)?.toInt() ..sellCount = (json['sellCount'] as num?)?.toInt() ..needLogistics = (json['needLogistics'] as num?)?.toInt() ..oversold = (json['oversold'] as num?)?.toInt() ..organic = (json['organic'] as num?)?.toInt() ..status = (json['status'] as num?)?.toInt() ..posShow = json['posShow'] as bool? ..productType = (json['productType'] as num?)?.toInt() ..productNumber = (json['productNumber'] as num?)?.toInt() ..setMeal = (json['setMeal'] as num?)?.toInt() ..attrStyle = (json['attrStyle'] as num?)?.toInt() ..detail = json['detail'] as String? ..isDelete = (json['isDelete'] as num?)?.toInt() ..printerFlag = json['printerFlag'] as String? ..materials = json['materials'] ..materialId = json['materialId'] ..details = json['details'] as String? ..thumbnailImg = json['thumbnailImg'] as String? ..info = json['info'] as String? ..buyCount = (json['buyCount'] as num?)?.toInt() ..sellCountLimit = (json['sellCountLimit'] as num?)?.toInt() ..vipDiscount = json['vipDiscount'] as String?; Map _$ProductVipsToJson(ProductVips instance) => { 'id': instance.id, 'tenantCode': instance.tenantCode, 'createTime': instance.createTime, 'createUser': instance.createUser, 'image': instance.image, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, 'supplierName': instance.supplierName, 'storeId': instance.storeId, 'categoryId': instance.categoryId, 'groupId': instance.groupId, 'shortName': instance.shortName, 'productName': instance.productName, 'sellDesc': instance.sellDesc, 'productCode': instance.productCode, 'weight': instance.weight, 'applyPrice': instance.applyPrice, 'price': instance.price, 'vipPrice': instance.vipPrice, 'stock': instance.stock, 'sellCount': instance.sellCount, 'needLogistics': instance.needLogistics, 'oversold': instance.oversold, 'organic': instance.organic, 'status': instance.status, 'posShow': instance.posShow, 'productType': instance.productType, 'productNumber': instance.productNumber, 'setMeal': instance.setMeal, 'attrStyle': instance.attrStyle, 'detail': instance.detail, 'isDelete': instance.isDelete, 'printerFlag': instance.printerFlag, 'materials': instance.materials, 'materialId': instance.materialId, 'details': instance.details, 'thumbnailImg': instance.thumbnailImg, 'info': instance.info, 'buyCount': instance.buyCount, 'sellCountLimit': instance.sellCountLimit, 'vipDiscount': instance.vipDiscount, };