GoogleCloudRunV2RevisionTemplate.fromJson constructor

GoogleCloudRunV2RevisionTemplate.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2RevisionTemplate.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,
        containers: json_.containsKey('containers')
            ? (json_['containers'] as core.List)
                .map((value) => GoogleCloudRunV2Container.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        encryptionKey: json_.containsKey('encryptionKey')
            ? json_['encryptionKey'] as core.String
            : null,
        executionEnvironment: json_.containsKey('executionEnvironment')
            ? json_['executionEnvironment'] as core.String
            : null,
        healthCheckDisabled: json_.containsKey('healthCheckDisabled')
            ? json_['healthCheckDisabled'] 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,
        maxInstanceRequestConcurrency:
            json_.containsKey('maxInstanceRequestConcurrency')
                ? json_['maxInstanceRequestConcurrency'] as core.int
                : null,
        revision: json_.containsKey('revision')
            ? json_['revision'] as core.String
            : null,
        scaling: json_.containsKey('scaling')
            ? GoogleCloudRunV2RevisionScaling.fromJson(
                json_['scaling'] as core.Map<core.String, core.dynamic>)
            : 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,
        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,
      );