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