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.
101 lines
2.2 KiB
101 lines
2.2 KiB
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>? timeProductList = []; |
|
|
|
ActivityAreaList(); |
|
|
|
factory ActivityAreaList.fromJson(Map<String, dynamic> json) => $ActivityAreaListFromJson(json); |
|
|
|
Map<String, dynamic> 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<String, dynamic> json) => $ActTemplateFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $ActTemplateToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |
|
|
|
@JsonSerializable() |
|
class TimeProductList { |
|
ActTime? actTime; |
|
List<ShopHomeProductList>? productList = []; |
|
|
|
TimeProductList(); |
|
|
|
factory TimeProductList.fromJson(Map<String, dynamic> json) => $TimeProductListFromJson(json); |
|
|
|
Map<String, dynamic> 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<String, dynamic> json) => $ActTimeFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $ActTimeToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |
|
|
|
|