😑
This commit is contained in:
@@ -35,10 +35,10 @@ public struct NutriscoreData: Sendable, Codable {
|
||||
|
||||
isBeverage = try container.decodeIfPresent(
|
||||
Int.self, forKey: .isBeverage)
|
||||
isCheese = try container.decodeIfPresent(Int.self, forKey: .isCheese)
|
||||
isCheese = try container.decodeStringOrInt(forKey: .isCheese)
|
||||
isWater = try container.decodeStringOrInt(forKey: .isWater)
|
||||
isFat = try container.decodeIfPresent(Int.self, forKey: .isFat)
|
||||
energy = try container.decodeIfPresent(Int.self, forKey: .energy)
|
||||
isFat = try container.decodeStringOrInt(forKey: .isFat)
|
||||
energy = try container.decodeStringOrInt(forKey: .energy)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user