PatchConfig.fromJson constructor

PatchConfig.fromJson(
  1. Map json_
)

Implementation

PatchConfig.fromJson(core.Map json_)
    : this(
        apt: json_.containsKey('apt')
            ? AptSettings.fromJson(
                json_['apt'] as core.Map<core.String, core.dynamic>)
            : null,
        goo: json_.containsKey('goo')
            ? GooSettings.fromJson(
                json_['goo'] as core.Map<core.String, core.dynamic>)
            : null,
        migInstancesAllowed: json_.containsKey('migInstancesAllowed')
            ? json_['migInstancesAllowed'] as core.bool
            : null,
        postStep: json_.containsKey('postStep')
            ? ExecStep.fromJson(
                json_['postStep'] as core.Map<core.String, core.dynamic>)
            : null,
        preStep: json_.containsKey('preStep')
            ? ExecStep.fromJson(
                json_['preStep'] as core.Map<core.String, core.dynamic>)
            : null,
        rebootConfig: json_.containsKey('rebootConfig')
            ? json_['rebootConfig'] as core.String
            : null,
        windowsUpdate: json_.containsKey('windowsUpdate')
            ? WindowsUpdateSettings.fromJson(
                json_['windowsUpdate'] as core.Map<core.String, core.dynamic>)
            : null,
        yum: json_.containsKey('yum')
            ? YumSettings.fromJson(
                json_['yum'] as core.Map<core.String, core.dynamic>)
            : null,
        zypper: json_.containsKey('zypper')
            ? ZypperSettings.fromJson(
                json_['zypper'] as core.Map<core.String, core.dynamic>)
            : null,
      );