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