NewComment.fromJson constructor

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

Implementation

factory NewComment.fromJson(Map<String, dynamic> json) {
  return NewComment(json['id'], Comment.fromJson(json['model']));
}