toJson method

Map<String, dynamic> toJson()

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!,
    };