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.
88 lines
1.9 KiB
88 lines
1.9 KiB
1 month ago
|
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>? timeProductList = [];
|
||
|
|
||
|
ActivityAreaList();
|
||
|
|
||
|
factory ActivityAreaList.fromJson(Map<String, dynamic> json) => _$ActivityAreaListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> 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<String, dynamic> json) => _$ActTemplateFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ActTemplateToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class TimeProductList {
|
||
|
ActTime? actTime;
|
||
|
List<ShopHomeProductList>? productList = [];
|
||
|
|
||
|
TimeProductList();
|
||
|
|
||
|
factory TimeProductList.fromJson(Map<String, dynamic> json) => _$TimeProductListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> 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<String, dynamic> json) => _$ActTimeFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ActTimeToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|