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