MessageChat.fromJson constructor

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

Implementation

factory MessageChat.fromJson(Map<String, dynamic> json) => MessageChat(
      role: json["role"],
      created: json["created"] ?? "",
      content: json["content"],
      isSentByMe: json["is_sent_by_me"] ?? false,
    );