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