ExecutePatchJobRequest.fromJson constructor

ExecutePatchJobRequest.fromJson(
  1. Map json_
)

Implementation

ExecutePatchJobRequest.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        dryRun:
            json_.containsKey('dryRun') ? json_['dryRun'] as core.bool : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        instanceFilter: json_.containsKey('instanceFilter')
            ? PatchInstanceFilter.fromJson(json_['instanceFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        patchConfig: json_.containsKey('patchConfig')
            ? PatchConfig.fromJson(
                json_['patchConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        rollout: json_.containsKey('rollout')
            ? PatchRollout.fromJson(
                json_['rollout'] as core.Map<core.String, core.dynamic>)
            : null,
      );