OSPolicyResourceGroup.fromJson constructor
OSPolicyResourceGroup.fromJson(
- Map _json
Implementation
OSPolicyResourceGroup.fromJson(core.Map _json)
: this(
inventoryFilters: _json.containsKey('inventoryFilters')
? (_json['inventoryFilters'] as core.List)
.map<OSPolicyInventoryFilter>((value) =>
OSPolicyInventoryFilter.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
osFilter: _json.containsKey('osFilter')
? OSPolicyOSFilter.fromJson(
_json['osFilter'] as core.Map<core.String, core.dynamic>)
: null,
resources: _json.containsKey('resources')
? (_json['resources'] as core.List)
.map<OSPolicyResource>((value) => OSPolicyResource.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);