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.
142 lines
3.1 KiB
142 lines
3.1 KiB
1 month ago
|
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>? cards = [];
|
||
|
List<dynamic>? coupons = [];
|
||
|
List<ProductVips>? productVips = [];
|
||
|
|
||
|
VipCardHome();
|
||
|
|
||
|
factory VipCardHome.fromJson(Map<String, dynamic> json) => _$VipCardHomeFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> 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<String, dynamic> json) => _$MemberFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> 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<String, dynamic> json) => _$CardsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> 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<String, dynamic> json) => _$ProductVipsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ProductVipsToJson(this);
|
||
|
|
||
|
|
||
|
}
|