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