WorkItem.fromJson constructor
WorkItem.fromJson(
- Map json_
Implementation
WorkItem.fromJson(core.Map json_)
: this(
configuration: json_.containsKey('configuration')
? json_['configuration'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
initialReportIndex: json_.containsKey('initialReportIndex')
? json_['initialReportIndex'] as core.String
: null,
jobId:
json_.containsKey('jobId') ? json_['jobId'] as core.String : null,
leaseExpireTime: json_.containsKey('leaseExpireTime')
? json_['leaseExpireTime'] as core.String
: null,
mapTask: json_.containsKey('mapTask')
? MapTask.fromJson(
json_['mapTask'] as core.Map<core.String, core.dynamic>)
: null,
packages: json_.containsKey('packages')
? (json_['packages'] as core.List)
.map((value) => Package.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
reportStatusInterval: json_.containsKey('reportStatusInterval')
? json_['reportStatusInterval'] as core.String
: null,
seqMapTask: json_.containsKey('seqMapTask')
? SeqMapTask.fromJson(
json_['seqMapTask'] as core.Map<core.String, core.dynamic>)
: null,
shellTask: json_.containsKey('shellTask')
? ShellTask.fromJson(
json_['shellTask'] as core.Map<core.String, core.dynamic>)
: null,
sourceOperationTask: json_.containsKey('sourceOperationTask')
? SourceOperationRequest.fromJson(json_['sourceOperationTask']
as core.Map<core.String, core.dynamic>)
: null,
streamingComputationTask:
json_.containsKey('streamingComputationTask')
? StreamingComputationTask.fromJson(
json_['streamingComputationTask']
as core.Map<core.String, core.dynamic>)
: null,
streamingConfigTask: json_.containsKey('streamingConfigTask')
? StreamingConfigTask.fromJson(json_['streamingConfigTask']
as core.Map<core.String, core.dynamic>)
: null,
streamingSetupTask: json_.containsKey('streamingSetupTask')
? StreamingSetupTask.fromJson(json_['streamingSetupTask']
as core.Map<core.String, core.dynamic>)
: null,
);