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