Map<String, dynamic> toMap() => { 'totalCount': totalCount, 'hits': hits.map((h) => h.toMap()).toList(), };