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