Comment.fromJson constructor

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

Implementation

factory Comment.fromJson(Map<String, dynamic> json) {
  return Comment(
      json['id'],
      json['userId'],
      json['text'],
      DateTime.parse(json['time']),
      json['resource'],
      json['byId'],
      json['edited'] != null ? DateTime.parse(json['edited']) : null,
      json['image']);
}