You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
216 lines
8.5 KiB
216 lines
8.5 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'vip_card_home.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
VipCardHome _$VipCardHomeFromJson(Map<String, dynamic> json) => VipCardHome()
|
||
|
..member = json['member'] == null
|
||
|
? null
|
||
|
: Member.fromJson(json['member'] as Map<String, dynamic>)
|
||
|
..cards = (json['cards'] as List<dynamic>?)
|
||
|
?.map((e) => Cards.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..coupons = json['coupons'] as List<dynamic>?
|
||
|
..productVips = (json['productVips'] as List<dynamic>?)
|
||
|
?.map((e) => ProductVips.fromJson(e as Map<String, dynamic>))
|
||
|
.toList();
|
||
|
|
||
|
Map<String, dynamic> _$VipCardHomeToJson(VipCardHome instance) =>
|
||
|
<String, dynamic>{
|
||
|
'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<String, dynamic> 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<String, dynamic>)
|
||
|
..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<String, dynamic> _$MemberToJson(Member instance) => <String, dynamic>{
|
||
|
'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<String, dynamic> 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<String, dynamic> _$CardsToJson(Cards instance) => <String, dynamic>{
|
||
|
'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<String, dynamic> 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<String, dynamic> _$ProductVipsToJson(ProductVips instance) =>
|
||
|
<String, dynamic>{
|
||
|
'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,
|
||
|
};
|