import 'package:huixiang/data/author.dart'; import 'package:json_annotation/json_annotation.dart'; part 'article.g.dart'; @JsonSerializable(explicitToJson: true) class Article { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? storeId = ''; String? categoryId = ''; String? mainTitle = ''; dynamic viceTitle; String? content = ''; String? coverImg = ''; dynamic author; int? type = 0; int? likes = 0; int? viewers = 0; String? startTime = ''; String? endTime = ''; bool? isHot = false; int? state = 0; String? location = ''; String? longitude = ''; String? latitude = ''; String? remark = ''; int? isDelete = 0; String? tenantCode = ''; dynamic storeName; bool? liked = false; bool? followed = false; dynamic comments; String? authorName = ''; String? authorHeadImg = ''; Article(); factory Article.fromJson(Map json) => _$ArticleFromJson(json); Map toJson() => _$ArticleToJson(this); }