AttributionSourceId.fromJson constructor

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

Implementation

factory AttributionSourceId.fromJson(Map<String, dynamic> json) {
  return AttributionSourceId(
    groundingPassage: decode(
      json['groundingPassage'],
      AttributionSourceId_GroundingPassageId.fromJson,
    ),
    semanticRetrieverChunk: decode(
      json['semanticRetrieverChunk'],
      AttributionSourceId_SemanticRetrieverChunk.fromJson,
    ),
  );
}