import 'package:json_annotation/json_annotation.dart'; part 'activity.g.dart'; @JsonSerializable(explicitToJson: true) 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); }