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