ClusterSummary.fromJson constructor
ClusterSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ClusterSummary.fromJson(Map<String, dynamic> json) {
return ClusterSummary(
clusterArn: json['ClusterArn'] as String?,
id: json['Id'] as String?,
name: json['Name'] as String?,
normalizedInstanceHours: json['NormalizedInstanceHours'] as int?,
outpostArn: json['OutpostArn'] as String?,
status: json['Status'] != null
? ClusterStatus.fromJson(json['Status'] as Map<String, dynamic>)
: null,
);
}