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.
 
 

34 lines
829 B

class PostFav {
String postId;
String admirerId;
String timestamp;
String countId;
PostFav({
this.postId,
this.admirerId,
this.countId,
this.timestamp,
});
factory PostFav.fromJSON(Map<String, dynamic> json) {
return PostFav(
countId: json["countId"],
postId: json["postId"],
admirerId: json["admirerId"],
timestamp: json["timestamp"]);
}
Map<dynamic, dynamic> toJson() {
final Map<dynamic, dynamic> data = Map<dynamic, dynamic>();
data['countId'] = this.countId;
data['postId'] = this.postId;
data['admirerId'] = this.admirerId;
data['timestamp'] = this.timestamp;
return data;
}
@override
String toString() {
return '{"countId": "$countId", "postId": "$postId","admirerId":"$admirerId","timestamp":"$timestamp"}';
}
}