GoogleCloudRunV2Job.fromJson constructor

GoogleCloudRunV2Job.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2Job.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,
        binaryAuthorization: json_.containsKey('binaryAuthorization')
            ? GoogleCloudRunV2BinaryAuthorization.fromJson(
                json_['binaryAuthorization']
                    as core.Map<core.String, core.dynamic>)
            : null,
        client: json_.containsKey('client')
            ? json_['client'] as core.String
            : null,
        clientVersion: json_.containsKey('clientVersion')
            ? json_['clientVersion'] 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,
        creator: json_.containsKey('creator')
            ? json_['creator'] as core.String
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        executionCount: json_.containsKey('executionCount')
            ? json_['executionCount'] as core.int
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        generation: json_.containsKey('generation')
            ? json_['generation'] 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,
        lastModifier: json_.containsKey('lastModifier')
            ? json_['lastModifier'] as core.String
            : null,
        latestCreatedExecution: json_.containsKey('latestCreatedExecution')
            ? GoogleCloudRunV2ExecutionReference.fromJson(
                json_['latestCreatedExecution']
                    as core.Map<core.String, core.dynamic>)
            : null,
        launchStage: json_.containsKey('launchStage')
            ? json_['launchStage'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        observedGeneration: json_.containsKey('observedGeneration')
            ? json_['observedGeneration'] as core.String
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : null,
        runExecutionToken: json_.containsKey('runExecutionToken')
            ? json_['runExecutionToken'] as core.String
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        startExecutionToken: json_.containsKey('startExecutionToken')
            ? json_['startExecutionToken'] as core.String
            : null,
        template: json_.containsKey('template')
            ? GoogleCloudRunV2ExecutionTemplate.fromJson(
                json_['template'] as core.Map<core.String, core.dynamic>)
            : null,
        terminalCondition: json_.containsKey('terminalCondition')
            ? GoogleCloudRunV2Condition.fromJson(json_['terminalCondition']
                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,
      );