RecommendHit.fromJson constructor

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

Implementation

factory RecommendHit.fromJson(Map<String, dynamic> json) {
  final instance = _$RecommendHitFromJson(json);
  final additionalProperties = Map<String, dynamic>.from(json)
    ..removeWhere((key, value) => _$RecommendHitFieldMap.containsKey(key));
  return RecommendHit(
    objectID: instance.objectID,
    highlightResult: instance.highlightResult,
    snippetResult: instance.snippetResult,
    rankingInfo: instance.rankingInfo,
    distinctSeqID: instance.distinctSeqID,
    score: instance.score,
    additionalProperties: additionalProperties,
  );
}