toJson method

Map<String, dynamic> toJson()

Implementation

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