GetCostAndUsageWithResourcesResponse.fromJson constructor
GetCostAndUsageWithResourcesResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetCostAndUsageWithResourcesResponse.fromJson(
Map<String, dynamic> json) {
return GetCostAndUsageWithResourcesResponse(
groupDefinitions: (json['GroupDefinitions'] as List?)
?.whereNotNull()
.map((e) => GroupDefinition.fromJson(e as Map<String, dynamic>))
.toList(),
nextPageToken: json['NextPageToken'] as String?,
resultsByTime: (json['ResultsByTime'] as List?)
?.whereNotNull()
.map((e) => ResultByTime.fromJson(e as Map<String, dynamic>))
.toList(),
);
}