RetrieveContextsRequest.fromJson constructor

RetrieveContextsRequest.fromJson(
  1. Object? j
)

Implementation

factory RetrieveContextsRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RetrieveContextsRequest(
    vertexRagStore: switch (json['vertexRagStore']) {
      null => null,
      Object $1 => RetrieveContextsRequest_VertexRagStore.fromJson($1),
    },
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    query: switch (json['query']) {
      null => null,
      Object $1 => RagQuery.fromJson($1),
    },
  );
}