CostCategory.fromJson constructor
CostCategory.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CostCategory.fromJson(Map<String, dynamic> json) {
return CostCategory(
costCategoryArn: json['CostCategoryArn'] as String,
effectiveStart: json['EffectiveStart'] as String,
name: json['Name'] as String,
ruleVersion: (json['RuleVersion'] as String).toCostCategoryRuleVersion(),
rules: (json['Rules'] as List)
.whereNotNull()
.map((e) => CostCategoryRule.fromJson(e as Map<String, dynamic>))
.toList(),
effectiveEnd: json['EffectiveEnd'] as String?,
processingStatus: (json['ProcessingStatus'] as List?)
?.whereNotNull()
.map((e) =>
CostCategoryProcessingStatus.fromJson(e as Map<String, dynamic>))
.toList(),
);
}