ComplianceItem.fromJson constructor
ComplianceItem.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ComplianceItem.fromJson(Map<String, dynamic> json) {
return ComplianceItem(
complianceType: json['ComplianceType'] as String?,
details: (json['Details'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
executionSummary: json['ExecutionSummary'] != null
? ComplianceExecutionSummary.fromJson(
json['ExecutionSummary'] as Map<String, dynamic>)
: null,
id: json['Id'] as String?,
resourceId: json['ResourceId'] as String?,
resourceType: json['ResourceType'] as String?,
severity: (json['Severity'] as String?)?.toComplianceSeverity(),
status: (json['Status'] as String?)?.toComplianceStatus(),
title: json['Title'] as String?,
);
}