Comment.fromJson constructor
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']);
}