class FBPosts { String postID; DateTime timestamp; String playbackID; String publisherID; String title; String assetID; String rendition; String aspect; String campaignID; int likes; int comments; FBPosts( {this.postID, this.playbackID, this.publisherID, this.title, this.timestamp, this.assetID, this.rendition, this.aspect, this.campaignID, this.comments, this.likes}); factory FBPosts.fromJSON(Map json) { return FBPosts( publisherID: json["publisher"], postID: json["postId"], title: json["title"], playbackID: json["playbackID"], assetID: json["assetID"], rendition: json["rendition"], aspect: json["aspect"], likes: json["likes"], campaignID: json["campaignId"], comments: json["comments"], timestamp: DateTime.fromMillisecondsSinceEpoch(json["timestamp"])); } }