AttributionSourceId.fromJson constructor

AttributionSourceId.fromJson(
  1. Object? j
)

Implementation

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