OSPolicyAssignmentReportOSPolicyCompliance.fromJson constructor
OSPolicyAssignmentReportOSPolicyCompliance.fromJson(
- Map json_
Implementation
OSPolicyAssignmentReportOSPolicyCompliance.fromJson(core.Map json_)
: this(
complianceState: json_.containsKey('complianceState')
? json_['complianceState'] as core.String
: null,
complianceStateReason: json_.containsKey('complianceStateReason')
? json_['complianceStateReason'] as core.String
: null,
osPolicyId: json_.containsKey('osPolicyId')
? json_['osPolicyId'] as core.String
: null,
osPolicyResourceCompliances: json_
.containsKey('osPolicyResourceCompliances')
? (json_['osPolicyResourceCompliances'] as core.List)
.map((value) =>
OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);