GetAggregateDiscoveredResourceCountsResponse.fromJson constructor

GetAggregateDiscoveredResourceCountsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetAggregateDiscoveredResourceCountsResponse.fromJson(
    Map<String, dynamic> json) {
  return GetAggregateDiscoveredResourceCountsResponse(
    totalDiscoveredResources: json['TotalDiscoveredResources'] as int,
    groupByKey: json['GroupByKey'] as String?,
    groupedResourceCounts: (json['GroupedResourceCounts'] as List?)
        ?.whereNotNull()
        .map((e) => GroupedResourceCount.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}