OSPolicyResourceCompliance.fromJson constructor
OSPolicyResourceCompliance.fromJson(
- Map _json
Implementation
OSPolicyResourceCompliance.fromJson(core.Map _json)
: this(
configSteps: _json.containsKey('configSteps')
? (_json['configSteps'] as core.List)
.map<OSPolicyResourceConfigStep>((value) =>
OSPolicyResourceConfigStep.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
execResourceOutput: _json.containsKey('execResourceOutput')
? OSPolicyResourceComplianceExecResourceOutput.fromJson(
_json['execResourceOutput']
as core.Map<core.String, core.dynamic>)
: null,
osPolicyResourceId: _json.containsKey('osPolicyResourceId')
? _json['osPolicyResourceId'] as core.String
: null,
state:
_json.containsKey('state') ? _json['state'] as core.String : null,
);