GroundingChunk_Maps_PlaceAnswerSources.fromJson constructor
GroundingChunk_Maps_PlaceAnswerSources.fromJson(
- Object? j
Implementation
factory GroundingChunk_Maps_PlaceAnswerSources.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GroundingChunk_Maps_PlaceAnswerSources(
reviewSnippets: switch (json['reviewSnippets']) {
null => [],
List<Object?> $1 => [
for (final i in $1)
GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet.fromJson(i),
],
_ => throw const FormatException('"reviewSnippets" is not a list'),
},
);
}