Preview.fromJson constructor

Preview.fromJson(
  1. Map json_
)

Implementation

Preview.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,
        build:
            json_.containsKey('build') ? json_['build'] as core.String : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deployment: json_.containsKey('deployment')
            ? json_['deployment'] as core.String
            : null,
        errorCode: json_.containsKey('errorCode')
            ? json_['errorCode'] as core.String
            : null,
        errorLogs: json_.containsKey('errorLogs')
            ? json_['errorLogs'] as core.String
            : null,
        errorStatus: json_.containsKey('errorStatus')
            ? Status.fromJson(
                json_['errorStatus'] as core.Map<core.String, core.dynamic>)
            : 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,
        logs: json_.containsKey('logs') ? json_['logs'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        previewArtifacts: json_.containsKey('previewArtifacts')
            ? PreviewArtifacts.fromJson(json_['previewArtifacts']
                as core.Map<core.String, core.dynamic>)
            : null,
        previewMode: json_.containsKey('previewMode')
            ? json_['previewMode'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] 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,
        workerPool: json_.containsKey('workerPool')
            ? json_['workerPool'] as core.String
            : null,
      );