CloudFunction.fromJson constructor

CloudFunction.fromJson(
  1. Map json_
)

Implementation

CloudFunction.fromJson(core.Map json_)
    : this(
        availableMemoryMb: json_.containsKey('availableMemoryMb')
            ? json_['availableMemoryMb'] as core.int
            : null,
        buildEnvironmentVariables:
            json_.containsKey('buildEnvironmentVariables')
                ? (json_['buildEnvironmentVariables']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      value as core.String,
                    ),
                  )
                : null,
        buildId: json_.containsKey('buildId')
            ? json_['buildId'] as core.String
            : null,
        buildName: json_.containsKey('buildName')
            ? json_['buildName'] as core.String
            : null,
        buildWorkerPool: json_.containsKey('buildWorkerPool')
            ? json_['buildWorkerPool'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        dockerRegistry: json_.containsKey('dockerRegistry')
            ? json_['dockerRegistry'] as core.String
            : null,
        dockerRepository: json_.containsKey('dockerRepository')
            ? json_['dockerRepository'] as core.String
            : null,
        entryPoint: json_.containsKey('entryPoint')
            ? json_['entryPoint'] 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,
        eventTrigger: json_.containsKey('eventTrigger')
            ? EventTrigger.fromJson(
                json_['eventTrigger'] as core.Map<core.String, core.dynamic>)
            : null,
        httpsTrigger: json_.containsKey('httpsTrigger')
            ? HttpsTrigger.fromJson(
                json_['httpsTrigger'] as core.Map<core.String, core.dynamic>)
            : null,
        ingressSettings: json_.containsKey('ingressSettings')
            ? json_['ingressSettings'] as core.String
            : null,
        kmsKeyName: json_.containsKey('kmsKeyName')
            ? json_['kmsKeyName'] 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,
        maxInstances: json_.containsKey('maxInstances')
            ? json_['maxInstances'] as core.int
            : null,
        minInstances: json_.containsKey('minInstances')
            ? json_['minInstances'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        runtime: json_.containsKey('runtime')
            ? json_['runtime'] 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,
        serviceAccountEmail: json_.containsKey('serviceAccountEmail')
            ? json_['serviceAccountEmail'] as core.String
            : null,
        sourceArchiveUrl: json_.containsKey('sourceArchiveUrl')
            ? json_['sourceArchiveUrl'] as core.String
            : null,
        sourceRepository: json_.containsKey('sourceRepository')
            ? SourceRepository.fromJson(json_['sourceRepository']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceToken: json_.containsKey('sourceToken')
            ? json_['sourceToken'] as core.String
            : null,
        sourceUploadUrl: json_.containsKey('sourceUploadUrl')
            ? json_['sourceUploadUrl'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        versionId: json_.containsKey('versionId')
            ? json_['versionId'] as core.String
            : null,
        vpcConnector: json_.containsKey('vpcConnector')
            ? json_['vpcConnector'] as core.String
            : null,
        vpcConnectorEgressSettings:
            json_.containsKey('vpcConnectorEgressSettings')
                ? json_['vpcConnectorEgressSettings'] as core.String
                : null,
      );