toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.absoluteAndRelativeDates != null) {
    json[r'absoluteAndRelativeDates'] = this.absoluteAndRelativeDates;
  } else {
    json[r'absoluteAndRelativeDates'] = null;
  }
  if (this.absoluteDates != null) {
    json[r'absoluteDates'] = this.absoluteDates;
  } else {
    json[r'absoluteDates'] = null;
  }
  if (this.allowAnon != null) {
    json[r'allowAnon'] = this.allowAnon;
  } else {
    json[r'allowAnon'] = null;
  }
  if (this.allowAnonFlag != null) {
    json[r'allowAnonFlag'] = this.allowAnonFlag;
  } else {
    json[r'allowAnonFlag'] = null;
  }
  if (this.allowAnonVotes != null) {
    json[r'allowAnonVotes'] = this.allowAnonVotes;
  } else {
    json[r'allowAnonVotes'] = null;
  }
  if (this.allowedLanguages != null) {
    json[r'allowedLanguages'] = this.allowedLanguages;
  } else {
    json[r'allowedLanguages'] = null;
  }
  if (this.collapseReplies != null) {
    json[r'collapseReplies'] = this.collapseReplies;
  } else {
    json[r'collapseReplies'] = null;
  }
  if (this.commentCountFormat != null) {
    json[r'commentCountFormat'] = this.commentCountFormat;
  } else {
    json[r'commentCountFormat'] = null;
  }
  if (this.commentHTMLRenderingMode != null) {
    json[r'commentHTMLRenderingMode'] = this.commentHTMLRenderingMode;
  } else {
    json[r'commentHTMLRenderingMode'] = null;
  }
  if (this.commentThreadDeleteMode != null) {
    json[r'commentThreadDeleteMode'] = this.commentThreadDeleteMode;
  } else {
    json[r'commentThreadDeleteMode'] = null;
  }
  if (this.commenterNameFormat != null) {
    json[r'commenterNameFormat'] = this.commenterNameFormat;
  } else {
    json[r'commenterNameFormat'] = null;
  }
  if (this.countAboveToggle != null) {
    json[r'countAboveToggle'] = this.countAboveToggle;
  } else {
    json[r'countAboveToggle'] = null;
  }
  if (this.customCSS != null) {
    json[r'customCSS'] = this.customCSS;
  } else {
    json[r'customCSS'] = null;
  }
  if (this.defaultAvatarSrc != null) {
    json[r'defaultAvatarSrc'] = this.defaultAvatarSrc;
  } else {
    json[r'defaultAvatarSrc'] = null;
  }
  if (this.defaultSortDirection != null) {
    json[r'defaultSortDirection'] = this.defaultSortDirection;
  } else {
    json[r'defaultSortDirection'] = null;
  }
  if (this.defaultUsername != null) {
    json[r'defaultUsername'] = this.defaultUsername;
  } else {
    json[r'defaultUsername'] = null;
  }
  if (this.disableAutoAdminMigration != null) {
    json[r'disableAutoAdminMigration'] = this.disableAutoAdminMigration;
  } else {
    json[r'disableAutoAdminMigration'] = null;
  }
  if (this.disableAutoHashTagCreation != null) {
    json[r'disableAutoHashTagCreation'] = this.disableAutoHashTagCreation;
  } else {
    json[r'disableAutoHashTagCreation'] = null;
  }
  if (this.disableBlocking != null) {
    json[r'disableBlocking'] = this.disableBlocking;
  } else {
    json[r'disableBlocking'] = null;
  }
  if (this.disableCommenterCommentDelete != null) {
    json[r'disableCommenterCommentDelete'] = this.disableCommenterCommentDelete;
  } else {
    json[r'disableCommenterCommentDelete'] = null;
  }
  if (this.disableCommenterCommentEdit != null) {
    json[r'disableCommenterCommentEdit'] = this.disableCommenterCommentEdit;
  } else {
    json[r'disableCommenterCommentEdit'] = null;
  }
  if (this.disableEmailInputs != null) {
    json[r'disableEmailInputs'] = this.disableEmailInputs;
  } else {
    json[r'disableEmailInputs'] = null;
  }
  if (this.disableLiveCommenting != null) {
    json[r'disableLiveCommenting'] = this.disableLiveCommenting;
  } else {
    json[r'disableLiveCommenting'] = null;
  }
  if (this.disableNotificationBell != null) {
    json[r'disableNotificationBell'] = this.disableNotificationBell;
  } else {
    json[r'disableNotificationBell'] = null;
  }
  if (this.disableProfileComments != null) {
    json[r'disableProfileComments'] = this.disableProfileComments;
  } else {
    json[r'disableProfileComments'] = null;
  }
  if (this.disableProfileDirectMessages != null) {
    json[r'disableProfileDirectMessages'] = this.disableProfileDirectMessages;
  } else {
    json[r'disableProfileDirectMessages'] = null;
  }
  if (this.disableProfiles != null) {
    json[r'disableProfiles'] = this.disableProfiles;
  } else {
    json[r'disableProfiles'] = null;
  }
  if (this.disableSuccessMessage != null) {
    json[r'disableSuccessMessage'] = this.disableSuccessMessage;
  } else {
    json[r'disableSuccessMessage'] = null;
  }
  if (this.disableToolbar != null) {
    json[r'disableToolbar'] = this.disableToolbar;
  } else {
    json[r'disableToolbar'] = null;
  }
  if (this.disableUnverifiedLabel != null) {
    json[r'disableUnverifiedLabel'] = this.disableUnverifiedLabel;
  } else {
    json[r'disableUnverifiedLabel'] = null;
  }
  if (this.disableVoting != null) {
    json[r'disableVoting'] = this.disableVoting;
  } else {
    json[r'disableVoting'] = null;
  }
  if (this.enableCommenterLinks != null) {
    json[r'enableCommenterLinks'] = this.enableCommenterLinks;
  } else {
    json[r'enableCommenterLinks'] = null;
  }
  if (this.enableSearch != null) {
    json[r'enableSearch'] = this.enableSearch;
  } else {
    json[r'enableSearch'] = null;
  }
  if (this.enableSpoilers != null) {
    json[r'enableSpoilers'] = this.enableSpoilers;
  } else {
    json[r'enableSpoilers'] = null;
  }
  if (this.enableThirdPartyCookieBypass != null) {
    json[r'enableThirdPartyCookieBypass'] = this.enableThirdPartyCookieBypass;
  } else {
    json[r'enableThirdPartyCookieBypass'] = null;
  }
  if (this.enableViewCounts != null) {
    json[r'enableViewCounts'] = this.enableViewCounts;
  } else {
    json[r'enableViewCounts'] = null;
  }
  if (this.enableVoteList != null) {
    json[r'enableVoteList'] = this.enableVoteList;
  } else {
    json[r'enableVoteList'] = null;
  }
  if (this.enableWYSIWYG != null) {
    json[r'enableWYSIWYG'] = this.enableWYSIWYG;
  } else {
    json[r'enableWYSIWYG'] = null;
  }
  if (this.gifRating != null) {
    json[r'gifRating'] = this.gifRating;
  } else {
    json[r'gifRating'] = null;
  }
  if (this.hasDarkBackground != null) {
    json[r'hasDarkBackground'] = this.hasDarkBackground;
  } else {
    json[r'hasDarkBackground'] = null;
  }
  if (this.headerHTML != null) {
    json[r'headerHTML'] = this.headerHTML;
  } else {
    json[r'headerHTML'] = null;
  }
  if (this.hideAvatars != null) {
    json[r'hideAvatars'] = this.hideAvatars;
  } else {
    json[r'hideAvatars'] = null;
  }
  if (this.hideCommentsUnderCountTextFormat != null) {
    json[r'hideCommentsUnderCountTextFormat'] = this.hideCommentsUnderCountTextFormat;
  } else {
    json[r'hideCommentsUnderCountTextFormat'] = null;
  }
  if (this.imageContentProfanityLevel != null) {
    json[r'imageContentProfanityLevel'] = this.imageContentProfanityLevel;
  } else {
    json[r'imageContentProfanityLevel'] = null;
  }
  if (this.inputAfterComments != null) {
    json[r'inputAfterComments'] = this.inputAfterComments;
  } else {
    json[r'inputAfterComments'] = null;
  }
  if (this.limitCommentsByGroups != null) {
    json[r'limitCommentsByGroups'] = this.limitCommentsByGroups;
  } else {
    json[r'limitCommentsByGroups'] = null;
  }
  if (this.locale != null) {
    json[r'locale'] = this.locale;
  } else {
    json[r'locale'] = null;
  }
  if (this.maxCommentCharacterLength != null) {
    json[r'maxCommentCharacterLength'] = this.maxCommentCharacterLength;
  } else {
    json[r'maxCommentCharacterLength'] = null;
  }
  if (this.maxCommentCreatedCountPUPM != null) {
    json[r'maxCommentCreatedCountPUPM'] = this.maxCommentCreatedCountPUPM;
  } else {
    json[r'maxCommentCreatedCountPUPM'] = null;
  }
  if (this.noCustomConfig != null) {
    json[r'noCustomConfig'] = this.noCustomConfig;
  } else {
    json[r'noCustomConfig'] = null;
  }
  if (this.mentionAutoCompleteMode != null) {
    json[r'mentionAutoCompleteMode'] = this.mentionAutoCompleteMode;
  } else {
    json[r'mentionAutoCompleteMode'] = null;
  }
  if (this.noImageUploads != null) {
    json[r'noImageUploads'] = this.noImageUploads;
  } else {
    json[r'noImageUploads'] = null;
  }
  if (this.allowEmbeds != null) {
    json[r'allowEmbeds'] = this.allowEmbeds;
  } else {
    json[r'allowEmbeds'] = null;
  }
  if (this.allowedEmbedDomains != null) {
    json[r'allowedEmbedDomains'] = this.allowedEmbedDomains;
  } else {
    json[r'allowedEmbedDomains'] = null;
  }
  if (this.noStyles != null) {
    json[r'noStyles'] = this.noStyles;
  } else {
    json[r'noStyles'] = null;
  }
  if (this.pageSize != null) {
    json[r'pageSize'] = this.pageSize;
  } else {
    json[r'pageSize'] = null;
  }
  if (this.readonly != null) {
    json[r'readonly'] = this.readonly;
  } else {
    json[r'readonly'] = null;
  }
  if (this.noNewRootComments != null) {
    json[r'noNewRootComments'] = this.noNewRootComments;
  } else {
    json[r'noNewRootComments'] = null;
  }
  if (this.requireSSO != null) {
    json[r'requireSSO'] = this.requireSSO;
  } else {
    json[r'requireSSO'] = null;
  }
  if (this.enableFChat != null) {
    json[r'enableFChat'] = this.enableFChat;
  } else {
    json[r'enableFChat'] = null;
  }
  if (this.enableResizeHandle != null) {
    json[r'enableResizeHandle'] = this.enableResizeHandle;
  } else {
    json[r'enableResizeHandle'] = null;
  }
  if (this.restrictedLinkDomains != null) {
    json[r'restrictedLinkDomains'] = this.restrictedLinkDomains;
  } else {
    json[r'restrictedLinkDomains'] = null;
  }
  if (this.showBadgesInTopBar != null) {
    json[r'showBadgesInTopBar'] = this.showBadgesInTopBar;
  } else {
    json[r'showBadgesInTopBar'] = null;
  }
  if (this.showCommentSaveSuccess != null) {
    json[r'showCommentSaveSuccess'] = this.showCommentSaveSuccess;
  } else {
    json[r'showCommentSaveSuccess'] = null;
  }
  if (this.showLiveRightAway != null) {
    json[r'showLiveRightAway'] = this.showLiveRightAway;
  } else {
    json[r'showLiveRightAway'] = null;
  }
  if (this.showQuestion != null) {
    json[r'showQuestion'] = this.showQuestion;
  } else {
    json[r'showQuestion'] = null;
  }
    json[r'spamRules'] = this.spamRules;
  if (this.ssoSecLvl != null) {
    json[r'ssoSecLvl'] = this.ssoSecLvl;
  } else {
    json[r'ssoSecLvl'] = null;
  }
  if (this.translations != null) {
    json[r'translations'] = this.translations;
  } else {
    json[r'translations'] = null;
  }
  if (this.useShowCommentsToggle != null) {
    json[r'useShowCommentsToggle'] = this.useShowCommentsToggle;
  } else {
    json[r'useShowCommentsToggle'] = null;
  }
  if (this.useSingleLineCommentInput != null) {
    json[r'useSingleLineCommentInput'] = this.useSingleLineCommentInput;
  } else {
    json[r'useSingleLineCommentInput'] = null;
  }
  if (this.voteStyle != null) {
    json[r'voteStyle'] = this.voteStyle;
  } else {
    json[r'voteStyle'] = null;
  }
  if (this.widgetQuestionId != null) {
    json[r'widgetQuestionId'] = this.widgetQuestionId;
  } else {
    json[r'widgetQuestionId'] = null;
  }
  if (this.widgetQuestionResultsStyle != null) {
    json[r'widgetQuestionResultsStyle'] = this.widgetQuestionResultsStyle;
  } else {
    json[r'widgetQuestionResultsStyle'] = null;
  }
  if (this.widgetQuestionShowBreakdown != null) {
    json[r'widgetQuestionShowBreakdown'] = this.widgetQuestionShowBreakdown;
  } else {
    json[r'widgetQuestionShowBreakdown'] = null;
  }
  if (this.widgetQuestionStyle != null) {
    json[r'widgetQuestionStyle'] = this.widgetQuestionStyle;
  } else {
    json[r'widgetQuestionStyle'] = null;
  }
  if (this.widgetQuestionWhenToSave != null) {
    json[r'widgetQuestionWhenToSave'] = this.widgetQuestionWhenToSave;
  } else {
    json[r'widgetQuestionWhenToSave'] = null;
  }
  if (this.widgetQuestionsRequired != null) {
    json[r'widgetQuestionsRequired'] = this.widgetQuestionsRequired;
  } else {
    json[r'widgetQuestionsRequired'] = null;
  }
  if (this.widgetSubQuestionVisibility != null) {
    json[r'widgetSubQuestionVisibility'] = this.widgetSubQuestionVisibility;
  } else {
    json[r'widgetSubQuestionVisibility'] = null;
  }
  if (this.wrap != null) {
    json[r'wrap'] = this.wrap;
  } else {
    json[r'wrap'] = null;
  }
  if (this.usersListLocation != null) {
    json[r'usersListLocation'] = this.usersListLocation;
  } else {
    json[r'usersListLocation'] = null;
  }
  if (this.usersListIncludeOffline != null) {
    json[r'usersListIncludeOffline'] = this.usersListIncludeOffline;
  } else {
    json[r'usersListIncludeOffline'] = null;
  }
  if (this.ticketBaseUrl != null) {
    json[r'ticketBaseUrl'] = this.ticketBaseUrl;
  } else {
    json[r'ticketBaseUrl'] = null;
  }
  if (this.ticketKBSearchEndpoint != null) {
    json[r'ticketKBSearchEndpoint'] = this.ticketKBSearchEndpoint;
  } else {
    json[r'ticketKBSearchEndpoint'] = null;
  }
  if (this.ticketFileUploadsEnabled != null) {
    json[r'ticketFileUploadsEnabled'] = this.ticketFileUploadsEnabled;
  } else {
    json[r'ticketFileUploadsEnabled'] = null;
  }
  if (this.ticketMaxFileSize != null) {
    json[r'ticketMaxFileSize'] = this.ticketMaxFileSize;
  } else {
    json[r'ticketMaxFileSize'] = null;
  }
    json[r'ticketAutoAssignUserIds'] = this.ticketAutoAssignUserIds;
  if (this.tos != null) {
    json[r'tos'] = this.tos;
  } else {
    json[r'tos'] = null;
  }
  return json;
}