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