ServiceConfig.fromJson constructor

ServiceConfig.fromJson(
  1. Map json_
)

Implementation

ServiceConfig.fromJson(core.Map json_)
    : this(
        allTrafficOnLatestRevision:
            json_.containsKey('allTrafficOnLatestRevision')
                ? json_['allTrafficOnLatestRevision'] as core.bool
                : null,
        availableCpu: json_.containsKey('availableCpu')
            ? json_['availableCpu'] as core.String
            : null,
        availableMemory: json_.containsKey('availableMemory')
            ? json_['availableMemory'] as core.String
            : null,
        binaryAuthorizationPolicy:
            json_.containsKey('binaryAuthorizationPolicy')
                ? json_['binaryAuthorizationPolicy'] as core.String
                : null,
        environmentVariables: json_.containsKey('environmentVariables')
            ? (json_['environmentVariables']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        ingressSettings: json_.containsKey('ingressSettings')
            ? json_['ingressSettings'] as core.String
            : null,
        maxInstanceCount: json_.containsKey('maxInstanceCount')
            ? json_['maxInstanceCount'] as core.int
            : null,
        maxInstanceRequestConcurrency:
            json_.containsKey('maxInstanceRequestConcurrency')
                ? json_['maxInstanceRequestConcurrency'] as core.int
                : null,
        minInstanceCount: json_.containsKey('minInstanceCount')
            ? json_['minInstanceCount'] as core.int
            : null,
        revision: json_.containsKey('revision')
            ? json_['revision'] as core.String
            : null,
        secretEnvironmentVariables:
            json_.containsKey('secretEnvironmentVariables')
                ? (json_['secretEnvironmentVariables'] as core.List)
                    .map((value) => SecretEnvVar.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        secretVolumes: json_.containsKey('secretVolumes')
            ? (json_['secretVolumes'] as core.List)
                .map((value) => SecretVolume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        securityLevel: json_.containsKey('securityLevel')
            ? json_['securityLevel'] as core.String
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
        serviceAccountEmail: json_.containsKey('serviceAccountEmail')
            ? json_['serviceAccountEmail'] as core.String
            : null,
        timeoutSeconds: json_.containsKey('timeoutSeconds')
            ? json_['timeoutSeconds'] as core.int
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
        vpcConnector: json_.containsKey('vpcConnector')
            ? json_['vpcConnector'] as core.String
            : null,
        vpcConnectorEgressSettings:
            json_.containsKey('vpcConnectorEgressSettings')
                ? json_['vpcConnectorEgressSettings'] as core.String
                : null,
      );