ResourceComplianceSummaryItem.fromJson constructor
ResourceComplianceSummaryItem.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourceComplianceSummaryItem.fromJson(Map<String, dynamic> json) {
return ResourceComplianceSummaryItem(
complianceType: json['ComplianceType'] as String?,
compliantSummary: json['CompliantSummary'] != null
? CompliantSummary.fromJson(
json['CompliantSummary'] as Map<String, dynamic>)
: null,
executionSummary: json['ExecutionSummary'] != null
? ComplianceExecutionSummary.fromJson(
json['ExecutionSummary'] as Map<String, dynamic>)
: null,
nonCompliantSummary: json['NonCompliantSummary'] != null
? NonCompliantSummary.fromJson(
json['NonCompliantSummary'] as Map<String, dynamic>)
: null,
overallSeverity:
(json['OverallSeverity'] as String?)?.toComplianceSeverity(),
resourceId: json['ResourceId'] as String?,
resourceType: json['ResourceType'] as String?,
status: (json['Status'] as String?)?.toComplianceStatus(),
);
}