ChatwootCreateConversationResponse.fromJson constructor

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

Implementation

factory ChatwootCreateConversationResponse.fromJson(
        Map<String, dynamic> json) =>
    ChatwootCreateConversationResponse(
      id: json["id"],
      uuid: json["uuid"],
      inboxId: json["inbox_id"],
      contactLastSeenAt: json["contact_last_seen_at"],
      status: json["status"],
      agentLastSeenAt: json["agent_last_seen_at"],
      messages: json["messages"] == null
          ? []
          : List<dynamic>.from(json["messages"]!.map((x) => x)),
      contact:
          json["contact"] == null ? null : Contact.fromJson(json["contact"]),
    );