SparkOptions.fromJson constructor
SparkOptions.fromJson(
- Map json_
Implementation
SparkOptions.fromJson(core.Map json_)
: this(
archiveUris: json_.containsKey('archiveUris')
? (json_['archiveUris'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
connection: json_.containsKey('connection')
? json_['connection'] as core.String
: null,
containerImage: json_.containsKey('containerImage')
? json_['containerImage'] as core.String
: null,
fileUris: json_.containsKey('fileUris')
? (json_['fileUris'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
jarUris: json_.containsKey('jarUris')
? (json_['jarUris'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
mainClass: json_.containsKey('mainClass')
? json_['mainClass'] as core.String
: null,
mainFileUri: json_.containsKey('mainFileUri')
? json_['mainFileUri'] as core.String
: null,
properties: json_.containsKey('properties')
? (json_['properties'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
pyFileUris: json_.containsKey('pyFileUris')
? (json_['pyFileUris'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
runtimeVersion: json_.containsKey('runtimeVersion')
? json_['runtimeVersion'] as core.String
: null,
);