in common/app/model/dotcomrendering/DotcomRenderingDataModel.scala [117:191]
def writes(model: DotcomRenderingDataModel) = {
val obj = Json.obj(
"version" -> model.version,
"headline" -> model.headline,
"standfirst" -> model.standfirst,
"webTitle" -> model.webTitle,
"affiliateLinksDisclaimer" -> model.affiliateLinksDisclaimer,
"mainMediaElements" -> model.mainMediaElements,
"main" -> model.main,
"filterKeyEvents" -> model.filterKeyEvents,
"pinnedPost" -> model.pinnedPost,
"keyEvents" -> model.keyEvents,
"mostRecentBlockId" -> model.mostRecentBlockId,
"blocks" -> model.blocks,
"pagination" -> model.pagination,
"author" -> model.author,
"byline" -> model.byline,
"webPublicationDate" -> model.webPublicationDate,
"webPublicationDateDeprecated" -> model.webPublicationDate,
"webPublicationDateDisplay" -> model.webPublicationDateDisplay,
"webPublicationSecondaryDateDisplay" -> model.webPublicationSecondaryDateDisplay,
"editionLongForm" -> model.editionLongForm,
"editionId" -> model.editionId,
"pageId" -> model.pageId,
"canonicalUrl" -> model.canonicalUrl,
"format" -> model.format,
"designType" -> model.designType,
"tags" -> model.tags,
"pillar" -> model.pillar,
"isLegacyInteractive" -> model.isLegacyInteractive,
"isImmersive" -> model.isImmersive,
"sectionLabel" -> model.sectionLabel,
"sectionUrl" -> model.sectionUrl,
"sectionName" -> model.sectionName,
"subMetaSectionLinks" -> model.subMetaSectionLinks,
"subMetaKeywordLinks" -> model.subMetaKeywordLinks,
"shouldHideAds" -> model.shouldHideAds,
"isAdFreeUser" -> model.isAdFreeUser,
"webURL" -> model.webURL,
"linkedData" -> model.linkedData,
"openGraphData" -> model.openGraphData,
"twitterData" -> model.twitterData,
"config" -> model.config,
"guardianBaseURL" -> model.guardianBaseURL,
"contentType" -> model.contentType,
"hasRelated" -> model.hasRelated,
"hasStoryPackage" -> model.hasStoryPackage,
"storyPackage" -> model.storyPackage,
"beaconURL" -> model.beaconURL,
"isCommentable" -> model.isCommentable,
"commercialProperties" -> model.commercialProperties,
"pageType" -> model.pageType,
"starRating" -> model.starRating,
"audioArticleImage" -> model.audioArticleImage,
"trailText" -> model.trailText,
"nav" -> model.nav,
"showBottomSocialButtons" -> model.showBottomSocialButtons,
"pageFooter" -> model.pageFooter,
"publication" -> model.publication,
"shouldHideReaderRevenue" -> model.shouldHideReaderRevenue,
"slotMachineFlags" -> model.slotMachineFlags,
"contributionsServiceUrl" -> model.contributionsServiceUrl,
"badge" -> model.badge,
"matchUrl" -> model.matchUrl,
"matchType" -> model.matchType,
"isSpecialReport" -> model.isSpecialReport,
"promotedNewsletter" -> model.promotedNewsletter,
"showTableOfContents" -> model.showTableOfContents,
"lang" -> model.lang,
"isRightToLeftLang" -> model.isRightToLeftLang,
"crossword" -> model.crossword,
)
ElementsEnhancer.enhanceDcrObject(obj)
}