core.Map<core.String, core.dynamic> toJson() => { if (workItems != null) 'workItems': workItems!.map((value) => value.toJson()).toList(), if (workerName != null) 'workerName': workerName!, };