Chat.fromJson constructor

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

Implementation

factory Chat.fromJson(Map<String, dynamic> json) {
  return Chat(json['userId'], json['text'], json['image'],
      DateTime.parse(json['time']), json['resource']);
}