RetrieveContextsResponse.fromJson constructor

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

Implementation

factory RetrieveContextsResponse.fromJson(Map<String, dynamic> json) {
  return RetrieveContextsResponse(
    contexts: decode(json['contexts'], RagContexts.fromJson),
  );
}