We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba8aa6 commit b8707d9Copy full SHA for b8707d9
REES46/Classes/Model/SearchResponse.swift
@@ -130,7 +130,8 @@ public struct SearchResponse {
130
public var brands: [String]?
131
public var priceRange: PriceRange?
132
public var redirect: Redirect?
133
- public var queryFixed: String?
+ public var searchQuery: String
134
+ public var searchQueryOriginal: String
135
136
init(json: [String: Any]) {
137
let cats = json["categories"] as? [[String: Any]] ?? []
@@ -192,7 +193,8 @@ public struct SearchResponse {
192
193
self.redirect = Redirect(json: redirectJSON)
194
}
195
- queryFixed = json["query_fixed"] as? String
196
+ searchQuery = json["search_query"] as? String ?? ""
197
+ searchQueryOriginal = json["search_query_original"] as? String ?? ""
198
199
200
0 commit comments