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