OSPolicyResourcePackageResource.fromJson constructor

OSPolicyResourcePackageResource.fromJson(
  1. 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,
      );