|
|
|
import 'dart:ui';
|
|
|
|
|
|
|
|
import 'package:huixiang/data/store.dart';
|
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'vip_card.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
|
|
class VipCard {
|
|
|
|
@JsonKey()
|
|
|
|
String? id = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? createTime = '';
|
|
|
|
@JsonKey()
|
|
|
|
dynamic createUser;
|
|
|
|
@JsonKey()
|
|
|
|
String? updateTime = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? updateUser = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? mid = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? openid = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? nickname = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? headimg = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? balance = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? realRecharge = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? sex = '';
|
|
|
|
@JsonKey()
|
|
|
|
bool? status = false;
|
|
|
|
@JsonKey()
|
|
|
|
bool? onCredit = false;
|
|
|
|
@JsonKey()
|
|
|
|
String? loginTime = '';
|
|
|
|
@JsonKey()
|
|
|
|
int? loginNum = 0;
|
|
|
|
@JsonKey()
|
|
|
|
String? tenantCode = '';
|
|
|
|
@JsonKey()
|
|
|
|
int? source = 0;
|
|
|
|
@JsonKey()
|
|
|
|
String? expendAmount = '';
|
|
|
|
@JsonKey()
|
|
|
|
int? buyTimes = 0;
|
|
|
|
@JsonKey()
|
|
|
|
dynamic lastBuyTime;
|
|
|
|
@JsonKey(name: "vip_no")
|
|
|
|
dynamic vipNo;
|
|
|
|
@JsonKey()
|
|
|
|
dynamic expireTime;
|
|
|
|
@JsonKey()
|
|
|
|
int? integral = 0;
|
|
|
|
@JsonKey()
|
|
|
|
int? level = 0;
|
|
|
|
@JsonKey()
|
|
|
|
dynamic vipRegStore;
|
|
|
|
@JsonKey()
|
|
|
|
String? tenantName = '';
|
|
|
|
@JsonKey()
|
|
|
|
String? tenantLogo = '';
|
|
|
|
@JsonKey()
|
|
|
|
List<Store>? storeList = [];
|
|
|
|
|
|
|
|
VipCard();
|
|
|
|
|
|
|
|
@JsonKey(includeToJson: false, includeFromJson: false)
|
|
|
|
Color color = Color(0xFF32A060);
|
|
|
|
|
|
|
|
factory VipCard.fromJson(Map<String, dynamic> json) => _$VipCardFromJson(json);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$VipCardToJson(this);
|
|
|
|
|
|
|
|
}
|