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.
91 lines
2.4 KiB
91 lines
2.4 KiB
class TrendData {
|
|
List<Records>? records;
|
|
int? total;
|
|
int? size;
|
|
int? current;
|
|
int? pages;
|
|
|
|
TrendData({this.records, this.total, this.size, this.current, this.pages});
|
|
|
|
TrendData.fromJson(Map<String, dynamic> json) {
|
|
if (json['records'] != null) {
|
|
records = <Records>[];
|
|
json['records'].forEach((v) {
|
|
records!.add(new Records.fromJson(v));
|
|
});
|
|
}
|
|
total = json['total'];
|
|
size = json['size'];
|
|
current = json['current'];
|
|
pages = json['pages'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
if (this.records != null) {
|
|
data['records'] = this.records!.map((v) => v.toJson()).toList();
|
|
}
|
|
data['total'] = this.total;
|
|
data['size'] = this.size;
|
|
data['current'] = this.current;
|
|
data['pages'] = this.pages;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Records {
|
|
String? postId;
|
|
int? operationType;
|
|
String? postCommentContent;
|
|
String? userId;
|
|
String? miId;
|
|
String? nickName;
|
|
String? profilePhoto;
|
|
String? content;
|
|
String? mediaUrls;
|
|
String? topicTags;
|
|
String? createTime;
|
|
|
|
Records(
|
|
{this.postId,
|
|
this.operationType,
|
|
this.postCommentContent,
|
|
this.userId,
|
|
this.miId,
|
|
this.nickName,
|
|
this.profilePhoto,
|
|
this.content,
|
|
this.mediaUrls,
|
|
this.topicTags,
|
|
this.createTime});
|
|
|
|
Records.fromJson(Map<String, dynamic> json) {
|
|
postId = json['postId'];
|
|
operationType = json['operationType'];
|
|
postCommentContent = json['postCommentContent'];
|
|
userId = json['userId'];
|
|
miId = json['miId'];
|
|
nickName = json['nickName'];
|
|
profilePhoto = json['profilePhoto'];
|
|
content = json['content'];
|
|
mediaUrls = json['mediaUrls'];
|
|
topicTags = json['topicTags'];
|
|
createTime = json['createTime'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['postId'] = this.postId;
|
|
data['operationType'] = this.operationType;
|
|
data['postCommentContent'] = this.postCommentContent;
|
|
data['userId'] = this.userId;
|
|
data['miId'] = this.miId;
|
|
data['nickName'] = this.nickName;
|
|
data['profilePhoto'] = this.profilePhoto;
|
|
data['content'] = this.content;
|
|
data['mediaUrls'] = this.mediaUrls;
|
|
data['topicTags'] = this.topicTags;
|
|
data['createTime'] = this.createTime;
|
|
return data;
|
|
}
|
|
}
|