AttributionSourceId_SemanticRetrieverChunk.fromJson constructor

AttributionSourceId_SemanticRetrieverChunk.fromJson(
  1. Object? j
)

Implementation

factory AttributionSourceId_SemanticRetrieverChunk.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return AttributionSourceId_SemanticRetrieverChunk(
    source: switch (json['source']) {
      null => '',
      Object $1 => decodeString($1),
    },
    chunk: switch (json['chunk']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}