Better handling of Nutriments
This commit is contained in:
14
Sources/OpenFoodFacts/Schemas/SearchResponse.swift
Normal file
14
Sources/OpenFoodFacts/Schemas/SearchResponse.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
public struct SearchResponse: Codable, ObjectDebugger {
|
||||
public var count: Int
|
||||
public var page: Int
|
||||
public var pageCount: Int
|
||||
public var pageSize: Int
|
||||
public var products: [Product]?
|
||||
public var skip: Int
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case count, page, products, skip
|
||||
case pageCount = "page_count"
|
||||
case pageSize = "page_size"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user