ResourceTagMapping.fromJson constructor
ResourceTagMapping.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourceTagMapping.fromJson(Map<String, dynamic> json) {
return ResourceTagMapping(
complianceDetails: json['ComplianceDetails'] != null
? ComplianceDetails.fromJson(
json['ComplianceDetails'] as Map<String, dynamic>)
: null,
resourceARN: json['ResourceARN'] as String?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}