/// 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; bool liked; static MemberCommentList fromMap(Map 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']; listBean.liked = map['liked']; 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, "liked": liked, }; }