toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.date != null) {
json[r'date'] = this.date;
} else {
json[r'date'] = null;
}
if (this.localDateString != null) {
json[r'localDateString'] = this.localDateString;
} else {
json[r'localDateString'] = null;
}
if (this.localDateHours != null) {
json[r'localDateHours'] = this.localDateHours;
} else {
json[r'localDateHours'] = null;
}
json[r'commenterName'] = this.commenterName;
if (this.commenterEmail != null) {
json[r'commenterEmail'] = this.commenterEmail;
} else {
json[r'commenterEmail'] = null;
}
if (this.commenterLink != null) {
json[r'commenterLink'] = this.commenterLink;
} else {
json[r'commenterLink'] = null;
}
json[r'comment'] = this.comment;
if (this.productId != null) {
json[r'productId'] = this.productId;
} else {
json[r'productId'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
if (this.avatarSrc != null) {
json[r'avatarSrc'] = this.avatarSrc;
} else {
json[r'avatarSrc'] = null;
}
if (this.parentId != null) {
json[r'parentId'] = this.parentId;
} else {
json[r'parentId'] = null;
}
json[r'mentions'] = this.mentions;
json[r'hashTags'] = this.hashTags;
if (this.pageTitle != null) {
json[r'pageTitle'] = this.pageTitle;
} else {
json[r'pageTitle'] = null;
}
if (this.isFromMyAccountPage != null) {
json[r'isFromMyAccountPage'] = this.isFromMyAccountPage;
} else {
json[r'isFromMyAccountPage'] = null;
}
json[r'url'] = this.url;
json[r'urlId'] = this.urlId;
if (this.meta != null) {
json[r'meta'] = this.meta;
} else {
json[r'meta'] = null;
}
json[r'moderationGroupIds'] = this.moderationGroupIds;
if (this.rating != null) {
json[r'rating'] = this.rating;
} else {
json[r'rating'] = null;
}
if (this.fromOfflineRestore != null) {
json[r'fromOfflineRestore'] = this.fromOfflineRestore;
} else {
json[r'fromOfflineRestore'] = null;
}
if (this.autoplayDelayMS != null) {
json[r'autoplayDelayMS'] = this.autoplayDelayMS;
} else {
json[r'autoplayDelayMS'] = null;
}
json[r'feedbackIds'] = this.feedbackIds;
json[r'questionValues'] = this.questionValues;
if (this.tos != null) {
json[r'tos'] = this.tos;
} else {
json[r'tos'] = null;
}
if (this.botId != null) {
json[r'botId'] = this.botId;
} else {
json[r'botId'] = null;
}
if (this.approved != null) {
json[r'approved'] = this.approved;
} else {
json[r'approved'] = null;
}
if (this.domain != null) {
json[r'domain'] = this.domain;
} else {
json[r'domain'] = null;
}
if (this.ip != null) {
json[r'ip'] = this.ip;
} else {
json[r'ip'] = null;
}
if (this.isPinned != null) {
json[r'isPinned'] = this.isPinned;
} else {
json[r'isPinned'] = null;
}
json[r'locale'] = this.locale;
if (this.reviewed != null) {
json[r'reviewed'] = this.reviewed;
} else {
json[r'reviewed'] = null;
}
if (this.verified != null) {
json[r'verified'] = this.verified;
} else {
json[r'verified'] = null;
}
if (this.votes != null) {
json[r'votes'] = this.votes;
} else {
json[r'votes'] = null;
}
if (this.votesDown != null) {
json[r'votesDown'] = this.votesDown;
} else {
json[r'votesDown'] = null;
}
if (this.votesUp != null) {
json[r'votesUp'] = this.votesUp;
} else {
json[r'votesUp'] = null;
}
return json;
}