OSPolicyResourcePackageResource.fromJson constructor
OSPolicyResourcePackageResource.fromJson(
- Map _json
Implementation
OSPolicyResourcePackageResource.fromJson(core.Map _json)
: this(
apt: _json.containsKey('apt')
? OSPolicyResourcePackageResourceAPT.fromJson(
_json['apt'] as core.Map<core.String, core.dynamic>)
: null,
deb: _json.containsKey('deb')
? OSPolicyResourcePackageResourceDeb.fromJson(
_json['deb'] as core.Map<core.String, core.dynamic>)
: null,
desiredState: _json.containsKey('desiredState')
? _json['desiredState'] as core.String
: null,
googet: _json.containsKey('googet')
? OSPolicyResourcePackageResourceGooGet.fromJson(
_json['googet'] as core.Map<core.String, core.dynamic>)
: null,
msi: _json.containsKey('msi')
? OSPolicyResourcePackageResourceMSI.fromJson(
_json['msi'] as core.Map<core.String, core.dynamic>)
: null,
rpm: _json.containsKey('rpm')
? OSPolicyResourcePackageResourceRPM.fromJson(
_json['rpm'] as core.Map<core.String, core.dynamic>)
: null,
yum: _json.containsKey('yum')
? OSPolicyResourcePackageResourceYUM.fromJson(
_json['yum'] as core.Map<core.String, core.dynamic>)
: null,
zypper: _json.containsKey('zypper')
? OSPolicyResourcePackageResourceZypper.fromJson(
_json['zypper'] as core.Map<core.String, core.dynamic>)
: null,
);