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.
154 lines
3.3 KiB
154 lines
3.3 KiB
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>? cards = []; |
|
List<dynamic>? coupons = []; |
|
List<ProductVips>? productVips = []; |
|
|
|
VipCardHome(); |
|
|
|
factory VipCardHome.fromJson(Map<String, dynamic> json) => $VipCardHomeFromJson(json); |
|
|
|
Map<String, dynamic> 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<String, dynamic> json) => $MemberFromJson(json); |
|
|
|
Map<String, dynamic> 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<String, dynamic> json) => $CardsFromJson(json); |
|
|
|
Map<String, dynamic> 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<String, dynamic> json) => $ProductVipsFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $ProductVipsToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |