CloudFunction.fromJson constructor
CloudFunction.fromJson(
- 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, item) => core.MapEntry(
key,
item 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, item) => core.MapEntry(
key,
item 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, item) => core.MapEntry(
key,
item 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,
);