GroundingAttribution.fromJson constructor
GroundingAttribution.fromJson(
- Object? j
Implementation
factory GroundingAttribution.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GroundingAttribution(
sourceId: switch (json['sourceId']) {
null => null,
Object $1 => AttributionSourceId.fromJson($1),
},
content: switch (json['content']) {
null => null,
Object $1 => Content.fromJson($1),
},
);
}