<aside> 📍 src/models/post.js
</aside>
Defines the data model Post.
Global Variables:
const Object** colorTheme: initialized with getTheme from src/styles/colorThemes.Constructor Parameters:
Object** postJson: parsed JSON string (must be an Object)bool** displayImage: whether image should be displayed. Default is false.bool** displayExcerpt: whether excerpt should be displayed. Default is false.String** wrapperColor: the color of the wrapper. Default is colorTheme.BACKGROUND.String** postColor: the color of the post. Default is colorTheme.BACKGROUND.Action:
Parses the data given and creates a massive Post instance.
Members:
featureImagePositionidtitleexcerptmediacoauthorsdatedisplayExcerptdisplayImagedisplayImageInArticlewrapperColorpostColorcontentcategorieslink