TUIMessage.fromJson constructor

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

Implementation

TUIMessage.fromJson(Map<String, dynamic> json) {
  messageId = json["message_id"];
  message = json["message"];
  timestamp = json["timestamp"];
  userId = json["user_id"];
  userName = json["user_name"];
  avatarUrl = json["avatar_url"];
}