Comment.fromJson constructor

Comment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Comment.fromJson(Map<String, dynamic> json) {
  return Comment(
    commentID: json['commentID'],
    postID: json['postID'],
    user: User.fromJson(json['user']),
    date: json['date'],
    content: json['content'],
    likeCount: json['likeCount'],
    didIlike: json['didIlike'],
  );
}