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,
      );