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