Skip to content

Commit b8707d9

Browse files
committed
DEV-3453: change search response model
1 parent 9ba8aa6 commit b8707d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

REES46/Classes/Model/SearchResponse.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ public struct SearchResponse {
130130
public var brands: [String]?
131131
public var priceRange: PriceRange?
132132
public var redirect: Redirect?
133-
public var queryFixed: String?
133+
public var searchQuery: String
134+
public var searchQueryOriginal: String
134135

135136
init(json: [String: Any]) {
136137
let cats = json["categories"] as? [[String: Any]] ?? []
@@ -192,7 +193,8 @@ public struct SearchResponse {
192193
self.redirect = Redirect(json: redirectJSON)
193194
}
194195

195-
queryFixed = json["query_fixed"] as? String
196+
searchQuery = json["search_query"] as? String ?? ""
197+
searchQueryOriginal = json["search_query_original"] as? String ?? ""
196198
}
197199
}
198200

0 commit comments

Comments
 (0)