WorkItemDetails.fromJson constructor
WorkItemDetails.fromJson(
- Map json_
Implementation
WorkItemDetails.fromJson(core.Map json_)
: this(
attemptId: json_.containsKey('attemptId')
? json_['attemptId'] as core.String
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
metrics: json_.containsKey('metrics')
? (json_['metrics'] as core.List)
.map((value) => MetricUpdate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
progress: json_.containsKey('progress')
? ProgressTimeseries.fromJson(
json_['progress'] as core.Map<core.String, core.dynamic>)
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
stragglerInfo: json_.containsKey('stragglerInfo')
? StragglerInfo.fromJson(
json_['stragglerInfo'] as core.Map<core.String, core.dynamic>)
: null,
taskId: json_.containsKey('taskId')
? json_['taskId'] as core.String
: null,
);