core.Map<core.String, core.dynamic> toJson() => { if (hdfsMetrics != null) 'hdfsMetrics': hdfsMetrics!, if (yarnMetrics != null) 'yarnMetrics': yarnMetrics!, };