import 'package:huixiang/data/shoping_home_config.dart'; import 'package:json_annotation/json_annotation.dart'; part 'activity_area_list.g.dart'; @JsonSerializable(explicitToJson: true) class ActivityAreaList { ActTemplate? actTemplate; List? timeProductList = []; ActivityAreaList(); factory ActivityAreaList.fromJson(Map json) => _$ActivityAreaListFromJson(json); Map toJson() => _$ActivityAreaListToJson(this); } @JsonSerializable(explicitToJson: true) class ActTemplate { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? storeId = ''; String? actName = ''; String? actDesc = ''; int? type = 0; int? limitTime = 0; int? limitNumber = 0; String? coverImg = ''; String? shareImg = ''; String? bannerImg = ''; int? state = 0; bool? allDay = false; String? startTime = ''; String? endTime = ''; int? isDelete = 0; ActTemplate(); factory ActTemplate.fromJson(Map json) => _$ActTemplateFromJson(json); Map toJson() => _$ActTemplateToJson(this); } @JsonSerializable(explicitToJson: true) class TimeProductList { ActTime? actTime; List? productList = []; TimeProductList(); factory TimeProductList.fromJson(Map json) => _$TimeProductListFromJson(json); Map toJson() => _$TimeProductListToJson(this); } @JsonSerializable(explicitToJson: true) class ActTime { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? storeId = ''; String? templateId = ''; bool? allDay = false; dynamic startHour; dynamic endHour; int? isDelete = 0; ActTime(); factory ActTime.fromJson(Map json) => _$ActTimeFromJson(json); Map toJson() => _$ActTimeToJson(this); }