Attachment.fromMap constructor

Attachment.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Attachment.fromMap(Map<String, dynamic> json) => Attachment(
      id: getString(json["id"]),
      conversationId: getString(json["conversationId"]),
      companyId: getString(json["companyId"]),
      userId: getString(json["userId"]),
      previousQueryId: getString(json["previousQueryId"]),
      type: getString(json["type"]),
      fileName: getString(json["fileName"]),
      link: getString(json["link"]),
      extension: getString(json["extension"]),
      ragId: getString(json["ragId"]),
      summary: getBool(json["summary"]),
      tokens: getInt(json["tokenCount"]),
    );