AutomationRun.fromJson constructor

AutomationRun.fromJson(
  1. Map json_
)

Implementation

AutomationRun.fromJson(core.Map json_)
    : this(
        advanceRolloutOperation: json_.containsKey('advanceRolloutOperation')
            ? AdvanceRolloutOperation.fromJson(
                json_['advanceRolloutOperation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        automationId: json_.containsKey('automationId')
            ? json_['automationId'] as core.String
            : null,
        automationSnapshot: json_.containsKey('automationSnapshot')
            ? Automation.fromJson(json_['automationSnapshot']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        promoteReleaseOperation: json_.containsKey('promoteReleaseOperation')
            ? PromoteReleaseOperation.fromJson(
                json_['promoteReleaseOperation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        repairRolloutOperation: json_.containsKey('repairRolloutOperation')
            ? RepairRolloutOperation.fromJson(json_['repairRolloutOperation']
                as core.Map<core.String, core.dynamic>)
            : null,
        ruleId: json_.containsKey('ruleId')
            ? json_['ruleId'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateDescription: json_.containsKey('stateDescription')
            ? json_['stateDescription'] as core.String
            : null,
        targetId: json_.containsKey('targetId')
            ? json_['targetId'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        waitUntilTime: json_.containsKey('waitUntilTime')
            ? json_['waitUntilTime'] as core.String
            : null,
      );