BaseSearchResponse.fromJson constructor
BaseSearchResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BaseSearchResponse.fromJson(Map<String, dynamic> json) {
final instance = _$BaseSearchResponseFromJson(json);
final additionalProperties = Map<String, dynamic>.from(json)
..removeWhere(
(key, value) => _$BaseSearchResponseFieldMap.containsKey(key));
return BaseSearchResponse(
abTestID: instance.abTestID,
abTestVariantID: instance.abTestVariantID,
aroundLatLng: instance.aroundLatLng,
automaticRadius: instance.automaticRadius,
exhaustive: instance.exhaustive,
appliedRules: instance.appliedRules,
exhaustiveFacetsCount: instance.exhaustiveFacetsCount,
exhaustiveNbHits: instance.exhaustiveNbHits,
exhaustiveTypo: instance.exhaustiveTypo,
facets: instance.facets,
facetsStats: instance.facetsStats,
index: instance.index,
indexUsed: instance.indexUsed,
message: instance.message,
nbSortedHits: instance.nbSortedHits,
parsedQuery: instance.parsedQuery,
processingTimeMS: instance.processingTimeMS,
processingTimingsMS: instance.processingTimingsMS,
queryAfterRemoval: instance.queryAfterRemoval,
redirect: instance.redirect,
renderingContent: instance.renderingContent,
serverTimeMS: instance.serverTimeMS,
serverUsed: instance.serverUsed,
userData: instance.userData,
queryID: instance.queryID,
automaticInsights: instance.automaticInsights,
additionalProperties: additionalProperties,
);
}