InstanceOSPoliciesCompliance.fromJson constructor
InstanceOSPoliciesCompliance.fromJson(
- Map _json
Implementation
InstanceOSPoliciesCompliance.fromJson(core.Map _json)
: this(
detailedState: _json.containsKey('detailedState')
? _json['detailedState'] as core.String
: null,
detailedStateReason: _json.containsKey('detailedStateReason')
? _json['detailedStateReason'] as core.String
: null,
instance: _json.containsKey('instance')
? _json['instance'] as core.String
: null,
lastComplianceCheckTime: _json.containsKey('lastComplianceCheckTime')
? _json['lastComplianceCheckTime'] as core.String
: null,
lastComplianceRunId: _json.containsKey('lastComplianceRunId')
? _json['lastComplianceRunId'] as core.String
: null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
osPolicyCompliances: _json.containsKey('osPolicyCompliances')
? (_json['osPolicyCompliances'] as core.List)
.map<InstanceOSPoliciesComplianceOSPolicyCompliance>(
(value) => InstanceOSPoliciesComplianceOSPolicyCompliance
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
state:
_json.containsKey('state') ? _json['state'] as core.String : null,
);