AiDocSearchResponse.fromJson constructor

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

Implementation

factory AiDocSearchResponse.fromJson(Map<String, dynamic> json) =>
    AiDocSearchResponse(
      sourceDocuments: List<SourceDocument>.from(
          json["sourceDocuments"].map((x) => SourceDocument.fromJson(x))),
      text: json["text"],
    );