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