|
|
|
|
|
|
|
class BannerData {
|
|
|
|
String content;
|
|
|
|
String createTime;
|
|
|
|
String contentType;
|
|
|
|
String createUser;
|
|
|
|
String id;
|
|
|
|
String imgUrl;
|
|
|
|
bool isDelete;
|
|
|
|
String storeId;
|
|
|
|
String tenantCode;
|
|
|
|
String type;
|
|
|
|
String updateTime;
|
|
|
|
String updateUser;
|
|
|
|
|
|
|
|
BannerData({this.content, this.createTime, this.contentType, 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,
|
|
|
|
contentType: json['contentType'] 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,
|
|
|
|
'contentType': this.contentType,
|
|
|
|
'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,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|