import 'package:huixiang/generated/json/activity.g.dart'; import 'package:huixiang/generated/json/base/json_field.dart'; @JsonSerializable() class Activity { Activity(); String? id; String? createTime; dynamic createUser; String? updateTime; dynamic updateUser; String? storeId; String? mainTitle; String? viceTitle; String? content; String? coverImg; String? startTime; String? endTime; String? categoryId; int? state; int? isDelete; int? likes; bool? liked; int? viewers; String? storeName; factory Activity.fromJson(Map json) => $ActivityFromJson(json); Map toJson() => $ActivityToJson(this); }