Better handling of Nutriments
This commit is contained in:
19
Sources/OpenFoodFacts/Schemas/Source.swift
Normal file
19
Sources/OpenFoodFacts/Schemas/Source.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
public struct Source: Codable, ObjectDebugger {
|
||||
public let fields: [String] = []
|
||||
public let id: String? = nil
|
||||
public let images: [String] = []
|
||||
public let importT: Int = 0
|
||||
public let manufacturer: String? = nil
|
||||
public let name: String? = nil
|
||||
public let url: String? = nil
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case fields
|
||||
case id
|
||||
case images
|
||||
case importT = "import_t"
|
||||
case manufacturer
|
||||
case name
|
||||
case url
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user