CostCategoryReference.fromJson constructor
CostCategoryReference.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CostCategoryReference.fromJson(Map<String, dynamic> json) {
return CostCategoryReference(
costCategoryArn: json['CostCategoryArn'] as String?,
effectiveEnd: json['EffectiveEnd'] as String?,
effectiveStart: json['EffectiveStart'] as String?,
name: json['Name'] as String?,
numberOfRules: json['NumberOfRules'] as int?,
processingStatus: (json['ProcessingStatus'] as List?)
?.whereNotNull()
.map((e) =>
CostCategoryProcessingStatus.fromJson(e as Map<String, dynamic>))
.toList(),
values: (json['Values'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}