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