SearchSynonymsResponse.fromJson constructor

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

Implementation

factory SearchSynonymsResponse.fromJson(Map<String, dynamic> json) {
  final instance = _$SearchSynonymsResponseFromJson(json);
  final additionalProperties = Map<String, dynamic>.from(json)
    ..removeWhere(
        (key, value) => _$SearchSynonymsResponseFieldMap.containsKey(key));
  return SearchSynonymsResponse(
    hits: instance.hits,
    nbHits: instance.nbHits,
    additionalProperties: additionalProperties,
  );
}