Deployment.fromJson constructor

Deployment.fromJson(
  1. Map json_
)

Implementation

Deployment.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        artifactsGcsBucket: json_.containsKey('artifactsGcsBucket')
            ? json_['artifactsGcsBucket'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deleteBuild: json_.containsKey('deleteBuild')
            ? json_['deleteBuild'] as core.String
            : null,
        deleteLogs: json_.containsKey('deleteLogs')
            ? json_['deleteLogs'] as core.String
            : null,
        deleteResults: json_.containsKey('deleteResults')
            ? ApplyResults.fromJson(
                json_['deleteResults'] as core.Map<core.String, core.dynamic>)
            : null,
        errorCode: json_.containsKey('errorCode')
            ? json_['errorCode'] as core.String
            : null,
        errorLogs: json_.containsKey('errorLogs')
            ? json_['errorLogs'] as core.String
            : null,
        importExistingResources: json_.containsKey('importExistingResources')
            ? json_['importExistingResources'] as core.bool
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        latestRevision: json_.containsKey('latestRevision')
            ? json_['latestRevision'] as core.String
            : null,
        lockState: json_.containsKey('lockState')
            ? json_['lockState'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        quotaValidation: json_.containsKey('quotaValidation')
            ? json_['quotaValidation'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateDetail: json_.containsKey('stateDetail')
            ? json_['stateDetail'] as core.String
            : null,
        terraformBlueprint: json_.containsKey('terraformBlueprint')
            ? TerraformBlueprint.fromJson(json_['terraformBlueprint']
                as core.Map<core.String, core.dynamic>)
            : null,
        tfErrors: json_.containsKey('tfErrors')
            ? (json_['tfErrors'] as core.List)
                .map((value) => TerraformError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tfVersion: json_.containsKey('tfVersion')
            ? json_['tfVersion'] as core.String
            : null,
        tfVersionConstraint: json_.containsKey('tfVersionConstraint')
            ? json_['tfVersionConstraint'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        workerPool: json_.containsKey('workerPool')
            ? json_['workerPool'] as core.String
            : null,
      );