toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.urlId != null) {
    json[r'urlId'] = this.urlId;
  } else {
    json[r'urlId'] = null;
  }
  if (this.urlIdRaw != null) {
    json[r'urlIdRaw'] = this.urlIdRaw;
  } else {
    json[r'urlIdRaw'] = null;
  }
  if (this.url != null) {
    json[r'url'] = this.url;
  } else {
    json[r'url'] = null;
  }
  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.commenterEmail != null) {
    json[r'commenterEmail'] = this.commenterEmail;
  } else {
    json[r'commenterEmail'] = null;
  }
  if (this.commenterName != null) {
    json[r'commenterName'] = this.commenterName;
  } else {
    json[r'commenterName'] = null;
  }
  if (this.commenterLink != null) {
    json[r'commenterLink'] = this.commenterLink;
  } else {
    json[r'commenterLink'] = null;
  }
  if (this.comment != null) {
    json[r'comment'] = this.comment;
  } else {
    json[r'comment'] = null;
  }
  if (this.commentHTML != null) {
    json[r'commentHTML'] = this.commentHTML;
  } else {
    json[r'commentHTML'] = null;
  }
  if (this.parentId != null) {
    json[r'parentId'] = this.parentId;
  } else {
    json[r'parentId'] = null;
  }
  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;
  }
  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;
  }
  if (this.verified != null) {
    json[r'verified'] = this.verified;
  } else {
    json[r'verified'] = null;
  }
  if (this.verifiedDate != null) {
    json[r'verifiedDate'] = this.verifiedDate!.toUtc().toIso8601String();
  } else {
    json[r'verifiedDate'] = 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.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.approved != null) {
    json[r'approved'] = this.approved;
  } else {
    json[r'approved'] = 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.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.displayLabel != null) {
    json[r'displayLabel'] = this.displayLabel;
  } else {
    json[r'displayLabel'] = null;
  }
  if (this.meta != null) {
    json[r'meta'] = this.meta;
  } else {
    json[r'meta'] = null;
  }
  if (this.moderationGroupIds != null) {
    json[r'moderationGroupIds'] = this.moderationGroupIds;
  } else {
    json[r'moderationGroupIds'] = null;
  }
    json[r'feedbackIds'] = this.feedbackIds;
  return json;
}