class TrendData { List? records; int? total; int? size; int? current; int? pages; TrendData({this.records, this.total, this.size, this.current, this.pages}); TrendData.fromJson(Map json) { if (json['records'] != null) { records = []; json['records'].forEach((v) { records!.add(new Records.fromJson(v)); }); } total = json['total']; size = json['size']; current = json['current']; pages = json['pages']; } Map toJson() { final Map data = new Map(); 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 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 toJson() { final Map data = new Map(); 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; } }