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