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.

49 lines
1.4 KiB

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