ProductionVariantSummary.fromJson constructor
ProductionVariantSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProductionVariantSummary.fromJson(Map<String, dynamic> json) {
return ProductionVariantSummary(
variantName: json['VariantName'] as String,
currentInstanceCount: json['CurrentInstanceCount'] as int?,
currentWeight: json['CurrentWeight'] as double?,
deployedImages: (json['DeployedImages'] as List?)
?.whereNotNull()
.map((e) => DeployedImage.fromJson(e as Map<String, dynamic>))
.toList(),
desiredInstanceCount: json['DesiredInstanceCount'] as int?,
desiredWeight: json['DesiredWeight'] as double?,
);
}