Retrieval.fromJson constructor

Retrieval.fromJson(
  1. Object? j
)

Implementation

factory Retrieval.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Retrieval(
    vertexAiSearch: switch (json['vertexAiSearch']) {
      null => null,
      Object $1 => VertexAisearch.fromJson($1),
    },
    vertexRagStore: switch (json['vertexRagStore']) {
      null => null,
      Object $1 => VertexRagStore.fromJson($1),
    },
    disableAttribution: switch (json['disableAttribution']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}