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,
);