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