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<MetricUpdate>((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,
taskId: _json.containsKey('taskId')
? _json['taskId'] as core.String
: null,
);