SearchHits.fromJson constructor

SearchHits.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SearchHits.fromJson(Map<String, dynamic> json) {
  final instance = _$SearchHitsFromJson(json);
  final additionalProperties = Map<String, dynamic>.from(json)
    ..removeWhere((key, value) => _$SearchHitsFieldMap.containsKey(key));
  return SearchHits(
    hits: instance.hits,
    query: instance.query,
    params: instance.params,
    additionalProperties: additionalProperties,
  );
}