import 'package:huixiang/data/shoping_home_config.dart'; import 'package:huixiang/data/sku_json.dart'; import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/activity_area_list.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/activity_area_list.g.dart'; @JsonSerializable() class ActivityAreaList { ActTemplate? actTemplate; List? timeProductList = []; ActivityAreaList(); factory ActivityAreaList.fromJson(Map json) => $ActivityAreaListFromJson(json); Map toJson() => $ActivityAreaListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class TimeProductList { ActTime? actTime; List? productList = []; TimeProductList(); factory TimeProductList.fromJson(Map json) => $TimeProductListFromJson(json); Map toJson() => $TimeProductListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } }