DescribeCacheOutput.fromJson constructor
DescribeCacheOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeCacheOutput.fromJson(Map<String, dynamic> json) {
return DescribeCacheOutput(
cacheAllocatedInBytes: json['CacheAllocatedInBytes'] as int?,
cacheDirtyPercentage: json['CacheDirtyPercentage'] as double?,
cacheHitPercentage: json['CacheHitPercentage'] as double?,
cacheMissPercentage: json['CacheMissPercentage'] as double?,
cacheUsedPercentage: json['CacheUsedPercentage'] as double?,
diskIds: (json['DiskIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
gatewayARN: json['GatewayARN'] as String?,
);
}