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.

49 lines
1.1 KiB

class UserCardModel {
int id;
String code;
int type;
int source;
int status;
int giveUserId;
String giveUserNickname;
int useAt;
int createdAt;
UserCardModel(
{this.id,
this.code,
this.type,
this.source,
this.status,
this.giveUserId,
this.giveUserNickname,
this.useAt,
this.createdAt});
UserCardModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
code = json['code'];
type = json['type'];
source = json['source'];
status = json['status'];
giveUserId = json['giveUserId'];
giveUserNickname = json['giveUserNickname'];
useAt = json['useAt'];
createdAt = json['createdAt'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['code'] = this.code;
data['type'] = this.type;
data['source'] = this.source;
data['status'] = this.status;
data['giveUserId'] = this.giveUserId;
data['giveUserNickname'] = this.giveUserNickname;
data['useAt'] = this.useAt;
data['createdAt'] = this.createdAt;
return data;
}
}