|
|
|
@ -1,6 +1,4 @@
|
|
|
|
|
|
|
|
|
|
class Activity { |
|
|
|
|
|
|
|
|
|
Activity(); |
|
|
|
|
|
|
|
|
|
String id; |
|
|
|
@ -17,6 +15,8 @@ class Activity {
|
|
|
|
|
String endTime; |
|
|
|
|
int state; |
|
|
|
|
int isDelete; |
|
|
|
|
int likes; |
|
|
|
|
int viewers; |
|
|
|
|
String storeName; |
|
|
|
|
|
|
|
|
|
factory Activity.fromJson(Map<String, dynamic> json) => Activity() |
|
|
|
@ -34,62 +34,28 @@ class Activity {
|
|
|
|
|
..endTime = json['endTime'] |
|
|
|
|
..state = json['state'] |
|
|
|
|
..isDelete = json['isDelete'] |
|
|
|
|
..likes = json["likes"] |
|
|
|
|
..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, |
|
|
|
|
'storeName': this.storeName, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Activity _$ActivityFromJson(Map<String, dynamic> json) { |
|
|
|
|
// return Activity() |
|
|
|
|
// ..id = json['id'] as String |
|
|
|
|
// ..createTime = json['createTime'] as String |
|
|
|
|
// ..createUser = json['createUser'] |
|
|
|
|
// ..updateTime = json['updateTime'] as String |
|
|
|
|
// ..updateUser = json['updateUser'] |
|
|
|
|
// ..storeId = json['storeId'] as String |
|
|
|
|
// ..mainTitle = json['mainTitle'] as String |
|
|
|
|
// ..viceTitle = json['viceTitle'] as String |
|
|
|
|
// ..content = json['content'] as String |
|
|
|
|
// ..coverImg = json['coverImg'] as String |
|
|
|
|
// ..startTime = json['startTime'] as String |
|
|
|
|
// ..endTime = json['endTime'] as String |
|
|
|
|
// ..state = json['state'] as int |
|
|
|
|
// ..isDelete = json['isDelete'] as int |
|
|
|
|
// ..storeName = json['storeName'] as String; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// Map<String, dynamic> _$ActivityToJson(Activity instance) => <String, dynamic>{ |
|
|
|
|
// 'id': instance.id, |
|
|
|
|
// 'createTime': instance.createTime, |
|
|
|
|
// 'createUser': instance.createUser, |
|
|
|
|
// 'updateTime': instance.updateTime, |
|
|
|
|
// 'updateUser': instance.updateUser, |
|
|
|
|
// 'storeId': instance.storeId, |
|
|
|
|
// 'mainTitle': instance.mainTitle, |
|
|
|
|
// 'viceTitle': instance.viceTitle, |
|
|
|
|
// 'content': instance.content, |
|
|
|
|
// 'coverImg': instance.coverImg, |
|
|
|
|
// 'startTime': instance.startTime, |
|
|
|
|
// 'endTime': instance.endTime, |
|
|
|
|
// 'state': instance.state, |
|
|
|
|
// 'isDelete': instance.isDelete, |
|
|
|
|
// 'storeName': instance.storeName, |
|
|
|
|
// }; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
'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, |
|
|
|
|
'viewers': this.viewers, |
|
|
|
|
'storeName': this.storeName |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|