WorkItemStatus.fromJson constructor
WorkItemStatus.fromJson(
- Map json_
Implementation
WorkItemStatus.fromJson(core.Map json_)
: this(
completed: json_.containsKey('completed')
? json_['completed'] as core.bool
: null,
counterUpdates: json_.containsKey('counterUpdates')
? (json_['counterUpdates'] as core.List)
.map((value) => CounterUpdate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dynamicSourceSplit: json_.containsKey('dynamicSourceSplit')
? DynamicSourceSplit.fromJson(json_['dynamicSourceSplit']
as core.Map<core.String, core.dynamic>)
: null,
errors: json_.containsKey('errors')
? (json_['errors'] as core.List)
.map((value) => Status.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
metricUpdates: json_.containsKey('metricUpdates')
? (json_['metricUpdates'] as core.List)
.map((value) => MetricUpdate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
progress: json_.containsKey('progress')
? ApproximateProgress.fromJson(
json_['progress'] as core.Map<core.String, core.dynamic>)
: null,
reportIndex: json_.containsKey('reportIndex')
? json_['reportIndex'] as core.String
: null,
reportedProgress: json_.containsKey('reportedProgress')
? ApproximateReportedProgress.fromJson(json_['reportedProgress']
as core.Map<core.String, core.dynamic>)
: null,
requestedLeaseDuration: json_.containsKey('requestedLeaseDuration')
? json_['requestedLeaseDuration'] as core.String
: null,
sourceFork: json_.containsKey('sourceFork')
? SourceFork.fromJson(
json_['sourceFork'] as core.Map<core.String, core.dynamic>)
: null,
sourceOperationResponse: json_.containsKey('sourceOperationResponse')
? SourceOperationResponse.fromJson(
json_['sourceOperationResponse']
as core.Map<core.String, core.dynamic>)
: null,
stopPosition: json_.containsKey('stopPosition')
? Position.fromJson(
json_['stopPosition'] as core.Map<core.String, core.dynamic>)
: null,
totalThrottlerWaitTimeSeconds: json_
.containsKey('totalThrottlerWaitTimeSeconds')
? (json_['totalThrottlerWaitTimeSeconds'] as core.num).toDouble()
: null,
workItemId: json_.containsKey('workItemId')
? json_['workItemId'] as core.String
: null,
);