RuntimeEnvironment.fromJson constructor
RuntimeEnvironment.fromJson(
- Map _json
Implementation
RuntimeEnvironment.fromJson(core.Map _json)
: this(
additionalExperiments: _json.containsKey('additionalExperiments')
? (_json['additionalExperiments'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
additionalUserLabels: _json.containsKey('additionalUserLabels')
? (_json['additionalUserLabels']
as core.Map<core.String, core.dynamic>)
.map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
bypassTempDirValidation: _json.containsKey('bypassTempDirValidation')
? _json['bypassTempDirValidation'] as core.bool
: null,
enableStreamingEngine: _json.containsKey('enableStreamingEngine')
? _json['enableStreamingEngine'] as core.bool
: null,
ipConfiguration: _json.containsKey('ipConfiguration')
? _json['ipConfiguration'] as core.String
: null,
kmsKeyName: _json.containsKey('kmsKeyName')
? _json['kmsKeyName'] as core.String
: null,
machineType: _json.containsKey('machineType')
? _json['machineType'] as core.String
: null,
maxWorkers: _json.containsKey('maxWorkers')
? _json['maxWorkers'] as core.int
: null,
network: _json.containsKey('network')
? _json['network'] as core.String
: null,
numWorkers: _json.containsKey('numWorkers')
? _json['numWorkers'] as core.int
: null,
serviceAccountEmail: _json.containsKey('serviceAccountEmail')
? _json['serviceAccountEmail'] as core.String
: null,
subnetwork: _json.containsKey('subnetwork')
? _json['subnetwork'] as core.String
: null,
tempLocation: _json.containsKey('tempLocation')
? _json['tempLocation'] as core.String
: null,
workerRegion: _json.containsKey('workerRegion')
? _json['workerRegion'] as core.String
: null,
workerZone: _json.containsKey('workerZone')
? _json['workerZone'] as core.String
: null,
zone: _json.containsKey('zone') ? _json['zone'] as core.String : null,
);