import 'package:json_annotation/json_annotation.dart'; part 'activity.g.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; int state; int isDelete; String storeName; factory Activity.fromJson(Map json) => _$ActivityFromJson(json); Map toJson() => _$ActivityToJson(this); }