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 (requestedLeaseDuration != null)
        'requestedLeaseDuration': requestedLeaseDuration!,
      if (unifiedWorkerRequest != null)
        'unifiedWorkerRequest': unifiedWorkerRequest!,
      if (workItemTypes != null) 'workItemTypes': workItemTypes!,
      if (workerCapabilities != null)
        'workerCapabilities': workerCapabilities!,
      if (workerId != null) 'workerId': workerId!,
    };