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