GoogleCloudRunV2Revision.fromJson constructor

GoogleCloudRunV2Revision.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2Revision.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,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => GoogleCloudRunV2Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        containers: json_.containsKey('containers')
            ? (json_['containers'] as core.List)
                .map((value) => GoogleCloudRunV2Container.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,
        encryptionKey: json_.containsKey('encryptionKey')
            ? json_['encryptionKey'] as core.String
            : null,
        encryptionKeyRevocationAction:
            json_.containsKey('encryptionKeyRevocationAction')
                ? json_['encryptionKeyRevocationAction'] as core.String
                : null,
        encryptionKeyShutdownDuration:
            json_.containsKey('encryptionKeyShutdownDuration')
                ? json_['encryptionKeyShutdownDuration'] as core.String
                : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        executionEnvironment: json_.containsKey('executionEnvironment')
            ? json_['executionEnvironment'] as core.String
            : 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,
        launchStage: json_.containsKey('launchStage')
            ? json_['launchStage'] as core.String
            : null,
        logUri: json_.containsKey('logUri')
            ? json_['logUri'] as core.String
            : null,
        maxInstanceRequestConcurrency:
            json_.containsKey('maxInstanceRequestConcurrency')
                ? json_['maxInstanceRequestConcurrency'] as core.int
                : 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,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        scaling: json_.containsKey('scaling')
            ? GoogleCloudRunV2RevisionScaling.fromJson(
                json_['scaling'] as core.Map<core.String, core.dynamic>)
            : null,
        scalingStatus: json_.containsKey('scalingStatus')
            ? GoogleCloudRunV2RevisionScalingStatus.fromJson(
                json_['scalingStatus'] as core.Map<core.String, core.dynamic>)
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        sessionAffinity: json_.containsKey('sessionAffinity')
            ? json_['sessionAffinity'] as core.bool
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => GoogleCloudRunV2Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vpcAccess: json_.containsKey('vpcAccess')
            ? GoogleCloudRunV2VpcAccess.fromJson(
                json_['vpcAccess'] as core.Map<core.String, core.dynamic>)
            : null,
      );