PatchJob.fromJson constructor

PatchJob.fromJson(
  1. Map json_
)

Implementation

PatchJob.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        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,
        errorMessage: json_.containsKey('errorMessage')
            ? json_['errorMessage'] as core.String
            : null,
        instanceDetailsSummary: json_.containsKey('instanceDetailsSummary')
            ? PatchJobInstanceDetailsSummary.fromJson(
                json_['instanceDetailsSummary']
                    as core.Map<core.String, core.dynamic>)
            : null,
        instanceFilter: json_.containsKey('instanceFilter')
            ? PatchInstanceFilter.fromJson(json_['instanceFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        patchConfig: json_.containsKey('patchConfig')
            ? PatchConfig.fromJson(
                json_['patchConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        patchDeployment: json_.containsKey('patchDeployment')
            ? json_['patchDeployment'] as core.String
            : null,
        percentComplete: json_.containsKey('percentComplete')
            ? (json_['percentComplete'] as core.num).toDouble()
            : null,
        rollout: json_.containsKey('rollout')
            ? PatchRollout.fromJson(
                json_['rollout'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );