Better handling of Nutriments
This commit is contained in:
13
Sources/OpenFoodFacts/Schemas/NutrientLevels.swift
Normal file
13
Sources/OpenFoodFacts/Schemas/NutrientLevels.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
public struct NutrientLevels: Codable, ObjectDebugger {
|
||||
public var fat: String? = nil
|
||||
public var salt: String? = nil
|
||||
public var saturatedFat: String? = nil
|
||||
public var sugars: String? = nil
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case fat
|
||||
case salt
|
||||
case saturatedFat = "saturated-fat"
|
||||
case sugars
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user