InventorySoftwarePackage.fromJson constructor

InventorySoftwarePackage.fromJson(
  1. Map json_
)

Implementation

InventorySoftwarePackage.fromJson(core.Map json_)
    : this(
        aptPackage: json_.containsKey('aptPackage')
            ? InventoryVersionedPackage.fromJson(
                json_['aptPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        cosPackage: json_.containsKey('cosPackage')
            ? InventoryVersionedPackage.fromJson(
                json_['cosPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        googetPackage: json_.containsKey('googetPackage')
            ? InventoryVersionedPackage.fromJson(
                json_['googetPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        qfePackage: json_.containsKey('qfePackage')
            ? InventoryWindowsQuickFixEngineeringPackage.fromJson(
                json_['qfePackage'] as core.Map<core.String, core.dynamic>)
            : null,
        windowsApplication: json_.containsKey('windowsApplication')
            ? InventoryWindowsApplication.fromJson(json_['windowsApplication']
                as core.Map<core.String, core.dynamic>)
            : null,
        wuaPackage: json_.containsKey('wuaPackage')
            ? InventoryWindowsUpdatePackage.fromJson(
                json_['wuaPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        yumPackage: json_.containsKey('yumPackage')
            ? InventoryVersionedPackage.fromJson(
                json_['yumPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        zypperPackage: json_.containsKey('zypperPackage')
            ? InventoryVersionedPackage.fromJson(
                json_['zypperPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        zypperPatch: json_.containsKey('zypperPatch')
            ? InventoryZypperPatch.fromJson(
                json_['zypperPatch'] as core.Map<core.String, core.dynamic>)
            : null,
      );