WorkflowTemplate.fromJson constructor
WorkflowTemplate.fromJson(
- Map json_
Implementation
WorkflowTemplate.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
dagTimeout: json_.containsKey('dagTimeout')
? json_['dagTimeout'] as core.String
: null,
encryptionConfig: json_.containsKey('encryptionConfig')
? GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig.fromJson(
json_['encryptionConfig']
as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
jobs: json_.containsKey('jobs')
? (json_['jobs'] as core.List)
.map((value) => OrderedJob.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: 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,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
parameters: json_.containsKey('parameters')
? (json_['parameters'] as core.List)
.map((value) => TemplateParameter.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
placement: json_.containsKey('placement')
? WorkflowTemplatePlacement.fromJson(
json_['placement'] as core.Map<core.String, core.dynamic>)
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
version: json_.containsKey('version')
? json_['version'] as core.int
: null,
);