UpgradeOccurrence.fromJson constructor

UpgradeOccurrence.fromJson(
  1. Map _json
)

Implementation

UpgradeOccurrence.fromJson(core.Map _json)
    : this(
        distribution: _json.containsKey('distribution')
            ? UpgradeDistribution.fromJson(
                _json['distribution'] as core.Map<core.String, core.dynamic>)
            : null,
        package: _json.containsKey('package')
            ? _json['package'] as core.String
            : null,
        parsedVersion: _json.containsKey('parsedVersion')
            ? Version.fromJson(
                _json['parsedVersion'] as core.Map<core.String, core.dynamic>)
            : null,
        windowsUpdate: _json.containsKey('windowsUpdate')
            ? WindowsUpdate.fromJson(
                _json['windowsUpdate'] as core.Map<core.String, core.dynamic>)
            : null,
      );