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.
30 lines
703 B
30 lines
703 B
3 years ago
|
class FBComments {
|
||
|
String postID;
|
||
|
DateTime timestamp;
|
||
|
String thumbnail;
|
||
|
String commenterID;
|
||
|
String commenter;
|
||
|
String commentID;
|
||
|
String comment;
|
||
|
|
||
|
FBComments(
|
||
|
{this.postID,
|
||
|
this.comment,
|
||
|
this.commentID,
|
||
|
this.commenter,
|
||
|
this.commenterID,
|
||
|
this.thumbnail,
|
||
|
this.timestamp});
|
||
|
factory FBComments.fromJSON(Map<String, dynamic> json) {
|
||
|
return FBComments(
|
||
|
comment: json["comment"],
|
||
|
commentID: json["commentID"],
|
||
|
commenter: json["commenter"],
|
||
|
commenterID: json["commenterID"],
|
||
|
thumbnail: json["thumbnail"],
|
||
|
postID: json["post"],
|
||
|
timestamp: DateTime.fromMillisecondsSinceEpoch(json["timestamp"]),
|
||
|
);
|
||
|
}
|
||
|
}
|