You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
973 B
40 lines
973 B
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<String, dynamic> 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"]));
|
|
}
|
|
}
|
|
|