Chat.fromJson constructor

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

Implementation

Chat.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  conversationId = json['conversation_id'];
  senderId = json['sender_id'];
  message = json['message'];
  profileImage = json['profileImage'];
  file = json['file'];
  createdAt = json['created_at'];
  name = json['name'];
  status = json['status'];
}