toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'_id'] = this.id;
json[r'tenantId'] = this.tenantId;
json[r'urlId'] = this.urlId;
if (this.urlIdRaw != null) {
json[r'urlIdRaw'] = this.urlIdRaw;
} else {
json[r'urlIdRaw'] = null;
}
json[r'url'] = this.url;
if (this.pageTitle != null) {
json[r'pageTitle'] = this.pageTitle;
} else {
json[r'pageTitle'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
if (this.anonUserId != null) {
json[r'anonUserId'] = this.anonUserId;
} else {
json[r'anonUserId'] = null;
}
if (this.commenterEmail != null) {
json[r'commenterEmail'] = this.commenterEmail;
} else {
json[r'commenterEmail'] = null;
}
json[r'commenterName'] = this.commenterName;
if (this.commenterLink != null) {
json[r'commenterLink'] = this.commenterLink;
} else {
json[r'commenterLink'] = null;
}
json[r'comment'] = this.comment;
json[r'commentHTML'] = this.commentHTML;
if (this.parentId != null) {
json[r'parentId'] = this.parentId;
} else {
json[r'parentId'] = null;
}
if (this.date != null) {
json[r'date'] = this.date!.toUtc().toIso8601String();
} 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;
}
if (this.votes != null) {
json[r'votes'] = this.votes;
} else {
json[r'votes'] = null;
}
if (this.votesUp != null) {
json[r'votesUp'] = this.votesUp;
} else {
json[r'votesUp'] = null;
}
if (this.votesDown != null) {
json[r'votesDown'] = this.votesDown;
} else {
json[r'votesDown'] = null;
}
if (this.expireAt != null) {
json[r'expireAt'] = this.expireAt!.toUtc().toIso8601String();
} else {
json[r'expireAt'] = null;
}
json[r'verified'] = this.verified;
if (this.verifiedDate != null) {
json[r'verifiedDate'] = this.verifiedDate!.toUtc().toIso8601String();
} else {
json[r'verifiedDate'] = null;
}
if (this.verificationId != null) {
json[r'verificationId'] = this.verificationId;
} else {
json[r'verificationId'] = null;
}
if (this.notificationSentForParent != null) {
json[r'notificationSentForParent'] = this.notificationSentForParent;
} else {
json[r'notificationSentForParent'] = null;
}
if (this.notificationSentForParentTenant != null) {
json[r'notificationSentForParentTenant'] = this.notificationSentForParentTenant;
} else {
json[r'notificationSentForParentTenant'] = null;
}
if (this.reviewed != null) {
json[r'reviewed'] = this.reviewed;
} else {
json[r'reviewed'] = null;
}
if (this.imported != null) {
json[r'imported'] = this.imported;
} else {
json[r'imported'] = null;
}
if (this.externalId != null) {
json[r'externalId'] = this.externalId;
} else {
json[r'externalId'] = null;
}
if (this.externalParentId != null) {
json[r'externalParentId'] = this.externalParentId;
} else {
json[r'externalParentId'] = null;
}
if (this.avatarSrc != null) {
json[r'avatarSrc'] = this.avatarSrc;
} else {
json[r'avatarSrc'] = null;
}
if (this.isSpam != null) {
json[r'isSpam'] = this.isSpam;
} else {
json[r'isSpam'] = null;
}
if (this.permNotSpam != null) {
json[r'permNotSpam'] = this.permNotSpam;
} else {
json[r'permNotSpam'] = null;
}
if (this.aiDeterminedSpam != null) {
json[r'aiDeterminedSpam'] = this.aiDeterminedSpam;
} else {
json[r'aiDeterminedSpam'] = null;
}
if (this.hasImages != null) {
json[r'hasImages'] = this.hasImages;
} else {
json[r'hasImages'] = null;
}
if (this.pageNumber != null) {
json[r'pageNumber'] = this.pageNumber;
} else {
json[r'pageNumber'] = null;
}
if (this.pageNumberOF != null) {
json[r'pageNumberOF'] = this.pageNumberOF;
} else {
json[r'pageNumberOF'] = null;
}
if (this.pageNumberNF != null) {
json[r'pageNumberNF'] = this.pageNumberNF;
} else {
json[r'pageNumberNF'] = null;
}
if (this.hasLinks != null) {
json[r'hasLinks'] = this.hasLinks;
} else {
json[r'hasLinks'] = null;
}
if (this.hasCode != null) {
json[r'hasCode'] = this.hasCode;
} else {
json[r'hasCode'] = null;
}
json[r'approved'] = this.approved;
if (this.locale != null) {
json[r'locale'] = this.locale;
} else {
json[r'locale'] = null;
}
if (this.isDeleted != null) {
json[r'isDeleted'] = this.isDeleted;
} else {
json[r'isDeleted'] = null;
}
if (this.isDeletedUser != null) {
json[r'isDeletedUser'] = this.isDeletedUser;
} else {
json[r'isDeletedUser'] = null;
}
if (this.isBannedUser != null) {
json[r'isBannedUser'] = this.isBannedUser;
} else {
json[r'isBannedUser'] = null;
}
if (this.isByAdmin != null) {
json[r'isByAdmin'] = this.isByAdmin;
} else {
json[r'isByAdmin'] = null;
}
if (this.isByModerator != null) {
json[r'isByModerator'] = this.isByModerator;
} else {
json[r'isByModerator'] = null;
}
if (this.isPinned != null) {
json[r'isPinned'] = this.isPinned;
} else {
json[r'isPinned'] = null;
}
if (this.isLocked != null) {
json[r'isLocked'] = this.isLocked;
} else {
json[r'isLocked'] = null;
}
if (this.flagCount != null) {
json[r'flagCount'] = this.flagCount;
} else {
json[r'flagCount'] = null;
}
if (this.rating != null) {
json[r'rating'] = this.rating;
} else {
json[r'rating'] = null;
}
if (this.displayLabel != null) {
json[r'displayLabel'] = this.displayLabel;
} else {
json[r'displayLabel'] = null;
}
if (this.fromProductId != null) {
json[r'fromProductId'] = this.fromProductId;
} else {
json[r'fromProductId'] = null;
}
if (this.meta != null) {
json[r'meta'] = this.meta;
} else {
json[r'meta'] = null;
}
if (this.ipHash != null) {
json[r'ipHash'] = this.ipHash;
} else {
json[r'ipHash'] = null;
}
json[r'mentions'] = this.mentions;
json[r'hashTags'] = this.hashTags;
if (this.badges != null) {
json[r'badges'] = this.badges;
} else {
json[r'badges'] = null;
}
if (this.domain != null) {
json[r'domain'] = this.domain;
} else {
json[r'domain'] = null;
}
if (this.veteranBadgeProcessed != null) {
json[r'veteranBadgeProcessed'] = this.veteranBadgeProcessed;
} else {
json[r'veteranBadgeProcessed'] = null;
}
if (this.moderationGroupIds != null) {
json[r'moderationGroupIds'] = this.moderationGroupIds;
} else {
json[r'moderationGroupIds'] = null;
}
if (this.didProcessBadges != null) {
json[r'didProcessBadges'] = this.didProcessBadges;
} else {
json[r'didProcessBadges'] = null;
}
if (this.fromOfflineRestore != null) {
json[r'fromOfflineRestore'] = this.fromOfflineRestore;
} else {
json[r'fromOfflineRestore'] = null;
}
if (this.autoplayJobId != null) {
json[r'autoplayJobId'] = this.autoplayJobId;
} else {
json[r'autoplayJobId'] = null;
}
if (this.autoplayDelayMS != null) {
json[r'autoplayDelayMS'] = this.autoplayDelayMS;
} else {
json[r'autoplayDelayMS'] = null;
}
json[r'feedbackIds'] = this.feedbackIds;
if (this.logs != null) {
json[r'logs'] = this.logs;
} else {
json[r'logs'] = null;
}
if (this.groupIds != null) {
json[r'groupIds'] = this.groupIds;
} else {
json[r'groupIds'] = null;
}
if (this.viewCount != null) {
json[r'viewCount'] = this.viewCount;
} else {
json[r'viewCount'] = null;
}
if (this.requiresVerification != null) {
json[r'requiresVerification'] = this.requiresVerification;
} else {
json[r'requiresVerification'] = null;
}
if (this.editKey != null) {
json[r'editKey'] = this.editKey;
} else {
json[r'editKey'] = null;
}
if (this.tosAcceptedAt != null) {
json[r'tosAcceptedAt'] = this.tosAcceptedAt!.toUtc().toIso8601String();
} else {
json[r'tosAcceptedAt'] = null;
}
if (this.botId != null) {
json[r'botId'] = this.botId;
} else {
json[r'botId'] = null;
}
return json;
}