toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (labels != null) 'labels': labels!,
if (time != null) 'time': time!,
if (workerHealthReport != null)
'workerHealthReport': workerHealthReport!.toJson(),
if (workerLifecycleEvent != null)
'workerLifecycleEvent': workerLifecycleEvent!.toJson(),
if (workerMessageCode != null)
'workerMessageCode': workerMessageCode!.toJson(),
if (workerMetrics != null) 'workerMetrics': workerMetrics!.toJson(),
if (workerShutdownNotice != null)
'workerShutdownNotice': workerShutdownNotice!.toJson(),
};