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.
 
 
 
 
 
 

64 lines
1.7 KiB

class Activity {
Activity();
String? id;
String? createTime;
dynamic? createUser;
String? updateTime;
dynamic? updateUser;
String? storeId;
String? mainTitle;
String? viceTitle;
String? content;
String? coverImg;
String? startTime;
String? endTime;
int? state;
int? isDelete;
int? likes;
bool? liked;
int? viewers;
String? storeName;
factory Activity.fromJson(Map<String, dynamic> json) => Activity()
..id = json['id']
..createTime = json['createTime']
..createUser = json['createUser']
..updateTime = json['updateTime']
..updateUser = json['updateUser']
..storeId = json['storeId']
..mainTitle = json['mainTitle']
..viceTitle = json['viceTitle']
..content = json['content']
..coverImg = json['coverImg']
..startTime = json['startTime']
..endTime = json['endTime']
..state = json['state']
..isDelete = json['isDelete']
..likes = json["likes"]
..liked = json["liked"]
..viewers = json["viewers"]
..storeName = json['storeName'];
Map<String, dynamic> toJson() => {
'id': this.id,
'createTime': this.createTime,
'createUser': this.createUser,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
'storeId': this.storeId,
'mainTitle': this.mainTitle,
'viceTitle': this.viceTitle,
'content': this.content,
'coverImg': this.coverImg,
'startTime': this.startTime,
'endTime': this.endTime,
'state': this.state,
'isDelete': this.isDelete,
'likes': this.likes,
'liked': this.liked,
'viewers': this.viewers,
'storeName': this.storeName
};
}