toMap method

Map<String, dynamic> toMap()

Implementation

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