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