InstanceOSPoliciesComplianceOSPolicyCompliance.fromJson constructor

InstanceOSPoliciesComplianceOSPolicyCompliance.fromJson(
  1. Map _json
)

Implementation

InstanceOSPoliciesComplianceOSPolicyCompliance.fromJson(core.Map _json)
    : this(
        osPolicyAssignment: _json.containsKey('osPolicyAssignment')
            ? _json['osPolicyAssignment'] as core.String
            : null,
        osPolicyId: _json.containsKey('osPolicyId')
            ? _json['osPolicyId'] as core.String
            : null,
        osPolicyResourceCompliances:
            _json.containsKey('osPolicyResourceCompliances')
                ? (_json['osPolicyResourceCompliances'] as core.List)
                    .map<OSPolicyResourceCompliance>((value) =>
                        OSPolicyResourceCompliance.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
      );