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.
47 lines
1.0 KiB
47 lines
1.0 KiB
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<String, dynamic> json) => _$ArticleFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => _$ArticleToJson(this); |
|
|
|
|
|
} |