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.
95 lines
2.8 KiB
95 lines
2.8 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; |
|
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'] |
|
..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, |
|
// }; |
|
|
|
} |