GoogleCloudRunV2Execution.fromJson constructor

GoogleCloudRunV2Execution.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2Execution.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,
        cancelledCount: json_.containsKey('cancelledCount')
            ? json_['cancelledCount'] as core.int
            : null,
        completionTime: json_.containsKey('completionTime')
            ? json_['completionTime'] as core.String
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => GoogleCloudRunV2Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        failedCount: json_.containsKey('failedCount')
            ? json_['failedCount'] as core.int
            : null,
        generation: json_.containsKey('generation')
            ? json_['generation'] as core.String
            : null,
        job: json_.containsKey('job') ? json_['job'] as core.String : 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,
        launchStage: json_.containsKey('launchStage')
            ? json_['launchStage'] as core.String
            : null,
        logUri: json_.containsKey('logUri')
            ? json_['logUri'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        observedGeneration: json_.containsKey('observedGeneration')
            ? json_['observedGeneration'] as core.String
            : null,
        parallelism: json_.containsKey('parallelism')
            ? json_['parallelism'] as core.int
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : null,
        retriedCount: json_.containsKey('retriedCount')
            ? json_['retriedCount'] as core.int
            : null,
        runningCount: json_.containsKey('runningCount')
            ? json_['runningCount'] as core.int
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        succeededCount: json_.containsKey('succeededCount')
            ? json_['succeededCount'] as core.int
            : null,
        taskCount: json_.containsKey('taskCount')
            ? json_['taskCount'] as core.int
            : null,
        template: json_.containsKey('template')
            ? GoogleCloudRunV2TaskTemplate.fromJson(
                json_['template'] as core.Map<core.String, core.dynamic>)
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );