AttributionSourceId_GroundingPassageId.fromJson constructor
AttributionSourceId_GroundingPassageId.fromJson(
- Object? j
Implementation
factory AttributionSourceId_GroundingPassageId.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return AttributionSourceId_GroundingPassageId(
passageId: switch (json['passageId']) {
null => '',
Object $1 => decodeString($1),
},
partIndex: switch (json['partIndex']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}