class PostFav { String? postId; String? admirerId; String? timestamp; String? countId; PostFav({ this.postId, this.admirerId, this.countId, this.timestamp, }); factory PostFav.fromJSON(Map json) { return PostFav( countId: json["countId"], postId: json["postId"], admirerId: json["admirerId"], timestamp: json["timestamp"]); } Map toJson() { final Map data = Map(); 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"}'; } }