Constructor
new Post(data)
This is the constructor for Post class that accepts the Post data.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Post data object |
- Source:
Example
let obj = new Post({
id:"id",
title: "title",
body: "body",
location: "location",
timestamp: "timestamp",
author: "author",
keywords: "keywords"})