toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (currentWorkerTime != null) 'currentWorkerTime': currentWorkerTime!,
if (location != null) 'location': location!,
if (unifiedWorkerRequest != null)
'unifiedWorkerRequest': unifiedWorkerRequest!,
if (workItemStatuses != null)
'workItemStatuses':
workItemStatuses!.map((value) => value.toJson()).toList(),
if (workerId != null) 'workerId': workerId!,
};