I am getting the following error :
The data couldn’t be read because it is missing.
When I run the following code:
struct Indicator: Decodable {
First make the properties optional then
If your case similar to this try this decodeIfPresent
`public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) firstName = try container.decodeIfPresent(String.self, forKey: .firstName) }`