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.
92 lines
2.4 KiB
92 lines
2.4 KiB
3 years ago
|
|
||
|
/// content : ""
|
||
|
/// createTime : ""
|
||
|
/// createUser : "0"
|
||
|
/// hidden : true
|
||
|
/// id : "0"
|
||
|
/// isDelete : 0
|
||
|
/// likes : 0
|
||
|
/// mid : "0"
|
||
|
/// parentContent : ""
|
||
|
/// parentId : "0"
|
||
|
/// parentMid : "0"
|
||
|
/// parentUserAvatarUrl : ""
|
||
|
/// parentUserName : ""
|
||
|
/// relationalId : "0"
|
||
|
/// relationalType : 0
|
||
|
/// updateTime : ""
|
||
|
/// updateUser : "0"
|
||
|
/// userAvatarUrl : ""
|
||
|
/// username : ""
|
||
|
|
||
|
class MemberCommentList {
|
||
|
String content;
|
||
|
String createTime;
|
||
|
String createUser;
|
||
|
bool hidden;
|
||
|
String id;
|
||
|
int isDelete;
|
||
|
int likes;
|
||
|
String mid;
|
||
|
String parentContent;
|
||
|
String parentId;
|
||
|
String parentMid;
|
||
|
String parentUserAvatarUrl;
|
||
|
String parentUserName;
|
||
|
String relationalId;
|
||
|
int relationalType;
|
||
|
String updateTime;
|
||
|
String updateUser;
|
||
|
String userAvatarUrl;
|
||
|
String username;
|
||
3 years ago
|
bool liked;
|
||
3 years ago
|
|
||
|
static MemberCommentList fromMap(Map<String, dynamic> map) {
|
||
|
if (map == null) return null;
|
||
|
MemberCommentList listBean = MemberCommentList();
|
||
|
listBean.content = map['content'];
|
||
|
listBean.createTime = map['createTime'];
|
||
|
listBean.createUser = map['createUser'];
|
||
|
listBean.hidden = map['hidden'];
|
||
|
listBean.id = map['id'];
|
||
|
listBean.isDelete = map['isDelete'];
|
||
|
listBean.likes = map['likes'];
|
||
|
listBean.mid = map['mid'];
|
||
|
listBean.parentContent = map['parentContent'];
|
||
|
listBean.parentId = map['parentId'];
|
||
|
listBean.parentMid = map['parentMid'];
|
||
|
listBean.parentUserAvatarUrl = map['parentUserAvatarUrl'];
|
||
|
listBean.parentUserName = map['parentUserName'];
|
||
|
listBean.relationalId = map['relationalId'];
|
||
|
listBean.relationalType = map['relationalType'];
|
||
|
listBean.updateTime = map['updateTime'];
|
||
|
listBean.updateUser = map['updateUser'];
|
||
|
listBean.userAvatarUrl = map['userAvatarUrl'];
|
||
|
listBean.username = map['username'];
|
||
3 years ago
|
listBean.liked = map['liked'];
|
||
3 years ago
|
return listBean;
|
||
|
}
|
||
|
|
||
|
Map toJson() => {
|
||
|
"content": content,
|
||
|
"createTime": createTime,
|
||
|
"createUser": createUser,
|
||
|
"hidden": hidden,
|
||
|
"id": id,
|
||
|
"isDelete": isDelete,
|
||
|
"likes": likes,
|
||
|
"mid": mid,
|
||
|
"parentContent": parentContent,
|
||
|
"parentId": parentId,
|
||
|
"parentMid": parentMid,
|
||
|
"parentUserAvatarUrl": parentUserAvatarUrl,
|
||
|
"parentUserName": parentUserName,
|
||
|
"relationalId": relationalId,
|
||
|
"relationalType": relationalType,
|
||
|
"updateTime": updateTime,
|
||
|
"updateUser": updateUser,
|
||
|
"userAvatarUrl": userAvatarUrl,
|
||
|
"username": username,
|
||
3 years ago
|
"liked": liked,
|
||
3 years ago
|
};
|
||
|
}
|