$WanbeanDatasFromJson function
Implementation
WanbeanDatas $WanbeanDatasFromJson(Map<String, dynamic> json) {
final WanbeanDatas wanbeanDatas = WanbeanDatas();
final int? anonymous = jsonConvert.convert<int>(json['anonymous']);
if (anonymous != null) {
wanbeanDatas.anonymous = anonymous;
}
final int? appendForContent =
jsonConvert.convert<int>(json['appendForContent']);
if (appendForContent != null) {
wanbeanDatas.appendForContent = appendForContent;
}
final int? articleId = jsonConvert.convert<int>(json['articleId']);
if (articleId != null) {
wanbeanDatas.articleId = articleId;
}
final bool? canEdit = jsonConvert.convert<bool>(json['canEdit']);
if (canEdit != null) {
wanbeanDatas.canEdit = canEdit;
}
final String? content = jsonConvert.convert<String>(json['content']);
if (content != null) {
wanbeanDatas.content = content;
}
final String? contentMd = jsonConvert.convert<String>(json['contentMd']);
if (contentMd != null) {
wanbeanDatas.contentMd = contentMd;
}
final int? id = jsonConvert.convert<int>(json['id']);
if (id != null) {
wanbeanDatas.id = id;
}
final String? niceDate = jsonConvert.convert<String>(json['niceDate']);
if (niceDate != null) {
wanbeanDatas.niceDate = niceDate;
}
final int? publishDate = jsonConvert.convert<int>(json['publishDate']);
if (publishDate != null) {
wanbeanDatas.publishDate = publishDate;
}
final int? replyCommentId = jsonConvert.convert<int>(json['replyCommentId']);
if (replyCommentId != null) {
wanbeanDatas.replyCommentId = replyCommentId;
}
final List<WanbeanDatasReplyComments>? replyComments = jsonConvert
.convertListNotNull<WanbeanDatasReplyComments>(json['replyComments']);
if (replyComments != null) {
wanbeanDatas.replyComments = replyComments;
}
final int? rootCommentId = jsonConvert.convert<int>(json['rootCommentId']);
if (rootCommentId != null) {
wanbeanDatas.rootCommentId = rootCommentId;
}
final int? status = jsonConvert.convert<int>(json['status']);
if (status != null) {
wanbeanDatas.status = status;
}
final int? toUserId = jsonConvert.convert<int>(json['toUserId']);
if (toUserId != null) {
wanbeanDatas.toUserId = toUserId;
}
final String? toUserName = jsonConvert.convert<String>(json['toUserName']);
if (toUserName != null) {
wanbeanDatas.toUserName = toUserName;
}
final int? userId = jsonConvert.convert<int>(json['userId']);
if (userId != null) {
wanbeanDatas.userId = userId;
}
final String? userName = jsonConvert.convert<String>(json['userName']);
if (userName != null) {
wanbeanDatas.userName = userName;
}
final int? zan = jsonConvert.convert<int>(json['zan']);
if (zan != null) {
wanbeanDatas.zan = zan;
}
return wanbeanDatas;
}