import 'package:json_annotation/json_annotation.dart'; part 'banner.g.dart'; @JsonSerializable(explicitToJson: true) class BannerData { String? content; String? createTime; int? 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 json) => _$BannerDataFromJson(json); Map toJson() => _$BannerDataToJson(this); }