import 'package:json_annotation/json_annotation.dart'; part 'banner.g.dart'; @JsonSerializable() 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 json) => _$BannerDataFromJson(json); Map toJson() => _$BannerDataToJson(this); }