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.
45 lines
1.3 KiB
45 lines
1.3 KiB
|
|
class BannerData { |
|
String content; |
|
String createTime; |
|
String createUser; |
|
String id; |
|
String imgUrl; |
|
bool isDelete; |
|
String storeId; |
|
String tenantCode; |
|
String type; |
|
String updateTime; |
|
String updateUser; |
|
|
|
BannerData({this.content, this.createTime, this.createUser, this.id, this.imgUrl, this.isDelete, this.storeId, this.tenantCode, this.type, this.updateTime, this.updateUser}); |
|
|
|
factory BannerData.fromJson(Map<String, dynamic> json) => BannerData( |
|
content: json['content'] as String, |
|
createTime: json['createTime'] as String, |
|
createUser: json['createUser'] as String, |
|
id: json['id'] as String, |
|
imgUrl: json['imgUrl'] as String, |
|
isDelete: json['isDelete'] as bool, |
|
storeId: json['storeId'] as String, |
|
tenantCode: json['tenantCode'] as String, |
|
type: json['type'] as String, |
|
updateTime: json['updateTime'] as String, |
|
updateUser: json['updateUser'] as String, |
|
); |
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{ |
|
'content': this.content, |
|
'createTime': this.createTime, |
|
'createUser': this.createUser, |
|
'id': this.id, |
|
'imgUrl': this.imgUrl, |
|
'isDelete': this.isDelete, |
|
'storeId': this.storeId, |
|
'tenantCode': this.tenantCode, |
|
'type': this.type, |
|
'updateTime': this.updateTime, |
|
'updateUser': this.updateUser, |
|
}; |
|
} |
|
|
|
|